gamesalad NOT (!) operator?

goonergooner 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

  • SocksSocks London, UK.Member Posts: 12,822

    not(booleanAttribute)

  • IceboxIcebox Member Posts: 1,485

    If your targetting html5 it wont work , just in case you publish and see everything not working

  • goonergooner Lancaster, PAMember Posts: 135

    @Socks said:
    not(booleanAttribute)

    Got it ... thanks!!!

  • goonergooner Lancaster, PAMember Posts: 135

    @Icebox said:
    If your targetting html5 it wont work , just in case you publish and see everything not working

    Ahh, I'll make note of that. Appreciate it.

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2016

    @ellison said:

    @Icebox said:
    If your targetting html5 it wont work , just in case you publish and see everything not working

    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

  • goonergooner Lancaster, PAMember Posts: 135

    @Socks said:

    @ellison said:

    @Icebox said:
    If your targetting html5 it wont work , just in case you publish and see everything not working

    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.

Sign In or Register to comment.