03-06-2023, 05:07 PM
(03-04-2023, 01:50 PM)Dimster Wrote: James D Jarvis - Not sure how other programmers interpret IF A but to me it doesn't sound/feel like a conditional statement like IF A = B does. It feels more like a question of existence. The only answer to IF A is -1 or 0. Similarly Print doesn't sound/feel like a condition but a command, like GOTO feels like a command. I do get Petr's point that it appears a lazy way of avoiding THEN but IF A Print "...." to me, is more a natural Question/Command than a Condition/Condition situation.
Every evaluation of IF is reducing it to -1 or 0 . If A is also the same as IF A <>0 . I suppose it's "If A has a value that isn't 0" or "If true then..."
Code: (Select All)
A= 100
If A then print "Not Zero"
if A<>0 then print "Also Not Zero"