Logic Help Needed To Create Switch

I'm having trouble wrapping my brain around this:
I want to create a switch that will toggle a lock between locked and unlocked. In turn I want to refresh the state of the lock each time it is locked or unlocked so that it will immediately confirm the change. I can't quite seem to get it straight. If anyone has an easy guideline it would save me some time and learn me something new:grin:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.