The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




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: 3 Guest(s)