Notifications
Clear all

[Closed] syntax for flipping a boolean setting?

For example, if I have a toggle set to on, I want maxscript to turn it off. If it is off, I need maxscript to turn it on.

2 Replies

You can easily use NOT to flip a boolean value. So if you have:


(
  local someVar = true

  someVar = NOT someVar --Will set the var to false
  someVar = NOT someVar --Will set the var to true again
)

Thanks man, thats exactly what I needed!