412lop 2022-09-26 23:55
I was wondering why there’s no Boolean values in LowRes NX
G-9 2022-09-27 12:09
-1 value is a TRUE statement while any other number is false
Timo 2022-09-27 12:30
Half true ;)
0 is false, everything else is true. But numbers are casted to integers, so 0.9 is 0, for example.
-1 is the recommended value for “true”, because it works best with AND/OR.
Timo 2022-09-27 12:31 (Edited)
IF A THEN PRINT “A IS TRUE”
IF B THEN PRINT “B IS TRUE”
IF A OR B THEN “A OR B IS TRUE”
G-9 2022-09-27 13:55
Ah yes, forgot 😅 thanks for clearing that up
was8bit 2022-09-27 15:25
Some choose to create their own TRUE FALSE as test values, you have to set these up manually though...
If you prefer to use TRUE FALSE statements in your code, this would work...
I recommend at least experimenting with how lowres does it.... and then just use whatever method(s) you are comfortable with :)