Notifications
Clear all
[Closed] syntax for flipping a boolean setting?
Nov 05, 2009 3:53 pm
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
Nov 05, 2009 3:53 pm
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
)