! is not working is scripts see following picture:
it is working in an expression but not in a script…
The scripts use python, !
isn’t valid python syntax, you should use the keyword not
See https://docs.inductiveautomation.com/display/DOC80/Variables%2C+Datatypes%2C+and+Objects.
As @Sanderd17 notes, the equivalent Python would be:
return not True