Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible issue with < and > (* solved *)
#9
That's a good idea.

You can enable strict boolean evaluation (which always returns 0 or 1) in the code with:

Code:
#pragma strict_bool = true

On the other hand, you can also create this macro, using Britlion's idea:

Code:
#define BOOL(x)  (ABS(SGN(x)))

PRINT INK 1+BOOL(value<5);value
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)