if ( myVariable % 5 == 0 ) ;Do stuff.endif
Which would not compile; the compiler says that operator can't be used on a global variable.
Next, I tried:
if ( myVariable as int % 5 == 0 ) ;Do stuff.endif
Which gives the error that a global variable can't be cast to int...
So I tried:
if ( myVariable - ( Math.floor( myVariable / 5 ) * 5 ) == 0 ) ;Do stuffendif
Which gives a huge load of errors. Casting to other types in any case doesn't work either.
What should I do?
Edit: Oh, I'm an idiot, I should have called GetValue() on it... trying that now...
Edit2: Yes, it works now, forgot that global variables are actually objects. I'll leave the post for anyone else who made this mistake, I guess.
