[BUG] ! not working in script

scripting
#1

! is not working is scripts see following picture:
it is working in an expression but not in a script…

0 Likes

#2

The scripts use python, ! isn’t valid python syntax, you should use the keyword not

0 Likes

#3

See https://docs.inductiveautomation.com/display/DOC80/Variables%2C+Datatypes%2C+and+Objects.
As @Sanderd17 notes, the equivalent Python would be:

return not True
0 Likes