Negation operator?

I’m probably being stupid but how do I do this?

*create x true
*if (NOT x)
  Do something

You basically did it

*create x true
*if not (x)
  Something

Note: if (x) is true from the beginning, and you never change it (*set x false), then you’re never going to see the text in the *if block

3 Likes

Thanks, you’re a life saver. I just can’t figure that out xD

1 Like
*if (x = false) works too
3 Likes

You can check against a numeric or string variable as well, this doesn’t require a boolean (true-false) variable.

*if item_count != 30
    Your item count is something - anything - other than 30.
*if name != "Marie"
    Your name is not Marie.
2 Likes

Also keep in mind that there is a strange bug with the *if not when using it inside choice options.

2 Likes

Hmhm, just for funsies, let’s compile the possible combination.

*if not (X)
*if x = false
*if x != true