Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If Print
#14
(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"
Reply


Messages In This Thread
If Print - by Dimster - 03-03-2023, 06:33 PM
RE: If Print - by TerryRitchie - 03-03-2023, 06:45 PM
RE: If Print - by vince - 03-03-2023, 06:48 PM
RE: If Print - by Petr - 03-03-2023, 07:04 PM
RE: If Print - by CharlieJV - 03-03-2023, 07:43 PM
RE: If Print - by James D Jarvis - 03-03-2023, 08:15 PM
RE: If Print - by TerryRitchie - 03-03-2023, 09:50 PM
RE: If Print - by SMcNeill - 03-04-2023, 12:06 AM
RE: If Print - by James D Jarvis - 03-04-2023, 01:35 AM
RE: If Print - by SMcNeill - 03-04-2023, 05:07 AM
RE: If Print - by Dimster - 03-04-2023, 01:50 PM
RE: If Print - by James D Jarvis - 03-06-2023, 05:07 PM
RE: If Print - by mnrvovrfc - 03-04-2023, 02:47 PM
RE: If Print - by TerryRitchie - 03-04-2023, 06:05 PM



Users browsing this thread: 7 Guest(s)