I am trying to use the following script snippet in a visionWindowOpened script:
if hasRole(“Supervisor”):
system.gui.messageBox(“True”,“Alert”)
else:
system.gui.messageBox(“False”,“Alert”)
It does not seem to do anything. If I replace the ‘hasRole(“Supervisor”)’ with ‘True’ or ‘False’, the script executes properly. It appears that hasRole(“Supervisor”) is not evaluating. Thoughts?