SYNTAX - alias of <> to !=

Previous topic - Next topic

kaotiklabs

Maybe would be useful to add the ! sign as NOT, like C language.

You know, liken an alias of <> to !=

Even could be used with boolean functions like:

Code (glbasic) Select
while !GameFinished()

...

wend
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Kitty Hello

WHILE NOT GameFinished() would be nice, right. It's on my TODO list.

Moru

In those basics I have used so far you use the NOT function that doesn't exist in GLBasic but can be easily made with a function like this: :-)

Code (glbasic) Select
WHILE NOT(GameFinished())
// do the game
WEND

FUNCTION NOT: val
IF val = TRUE THEN RETURN FALSE
IF val = FALSE THEN RETURN TRUE
ENDFUNCTION