Toggle Yes/No Custom State

Agree this would be handy, but to toggle any Boolean (yes/no) just evaluate:

BooleanValue is “no”

This returns “yes” if the thing is “no”. It returns “no” if the thing is “yes”. So, toggle.

(Though I do hate that syntax and would prefer an operator for Booleans like :inverse or :not.)

15 Likes