GameMaker: Studio

GameMaker: Studio

View Stats:
shak59 Aug 4, 2017 @ 9:59am
[DONE] What does =! mean?
I am reading some source code I found...

In a "press SPACE" event it has script:

global.isoview =! global.isoview

Now I know != means not equal to, but what does =! mean?

Google does not help because it does not recognise those symbols for search :(
Last edited by shak59; Aug 4, 2017 @ 10:17am
< >
Showing 1-3 of 3 comments
kris40k Aug 4, 2017 @ 10:15am 
global.isoview = !global.isoview

This would flip the boolean value of global.isoview (true would become false, false would become true). GML is pretty easy going on interpretation syntax rules; it may work even though the spacing is off. I haven't tested.
shak59 Aug 4, 2017 @ 10:16am 
Originally posted by kris40k:
global.isoview = !global.isoview

This would flip the boolean value of global.isoview (true would become false, false would become true). GML is pretty easy going on interpretation syntax rules; it may work even though the spacing is off. I haven't tested.

Ah! So it is like:

The new global.isoview equals NOT the old global.isoview

So it flips it...very clever!
kris40k Aug 4, 2017 @ 12:55pm 
You got it
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Aug 4, 2017 @ 9:59am
Posts: 3