Reverse Logic drives me crazy...
I have two Drop Down Menu Items to Lock or UnLock particular users access to parts of the system.
Firstly, the LoggedinUser must have the Attribute CanLockUnLockSystem set to Yes. If No then neither option will display.
Secondly, If already Locked then only Unlock option should display. If already UnLocked then only Lock should display.
So, I have the following conditions for Condition When Invisible....
Lock:
(LoggedInSystemUser.CanLockUnLockSystem='Yes' AND SystemSettings.SystemIsLocked='Yes') OR LoggedInSystemUser.CanLockUnLockSystem='No'
UnLock:
(LoggedInSystemUser.CanLockUnLockSystem='Yes' AND SystemSettings.SystemIsLocked='No') OR LoggedInSystemUser.CanLockUnLockSystem='No'
Clearly this logic is not right as both options always display regardless of the condition of SystemSettings.SystemIsLocked.
I have checked and the values for LoggedInSystemUser.CanLockUnLockSystem are correct.
I have tried the reverse and wrapping in a NOT. Still no joy.
What am I missing....?