gamesalad NOT (!) operator?
gooner
Lancaster, PAMember Posts: 135
Hey,
is there a list of operators in gamesalad i can look over? i am looking for NOT (!) to invert a boolean for a toggle button.
i want to do booleanAttribute = !booleanAttribute when button is pressed.
Thanks for any info or link to operators list!
Comments
not(booleanAttribute)
If your targetting html5 it wont work , just in case you publish and see everything not working
Got it ... thanks!!!
Ahh, I'll make note of that. Appreciate it.
Taking onboard Icebox's caveat . . . you could use an integer instead and use the maths below to toggle between 1 and 0 / true and false:
When button is pressed change Attribute to 1-Attribute
nice!, using this now for my toggle button, appreciate it.