04-09-2025, 04:14 PM
(This post was last modified: 04-09-2025, 04:17 PM by madscijr.
Edit Reason: fixed some typos and bad formatting
)
At this point, I just use _TRUE and _FALSE which eliminates 2 lines of code and any guesswork.
But if we have to define it, I would opt for explicit (#1)
Const False=0 : Const True=-1
because with
Const TRUE = Not FALSE
a couple of times I needed to know the value, and I couldn't recall if it was -1 or +1,
and had to resort to doing a PRINT str$(TRUE) to be reminded, which was annoying.
Really, I am totally happy with _TRUE and _FALSE being natively supported now, so we don't have to think about this stuff!
But if we have to define it, I would opt for explicit (#1)
Const False=0 : Const True=-1
because with
Const TRUE = Not FALSE
a couple of times I needed to know the value, and I couldn't recall if it was -1 or +1,
and had to resort to doing a PRINT str$(TRUE) to be reminded, which was annoying.
Really, I am totally happy with _TRUE and _FALSE being natively supported now, so we don't have to think about this stuff!