07-31-2017, 07:50 AM
That's a good idea.
You can enable strict boolean evaluation (which always returns 0 or 1) in the code with:
On the other hand, you can also create this macro, using Britlion's 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