QB / QB64 Discussion Forum      Other Subforums, Links and Downloads
 Return to Index  

Those are called boolean expressions

December 31 2011 at 7:37 PM
  (Login burger2227)
R


Response to I don't know what it can be called, but it works

They are the same as IF statements except that they return -1 when true and 0 when false:

cycle% = 1
PRINT ((cycle% = 1) AND 1)

OR returns -1 too...

 
 Respond to this message   

Newbies usually go to www.qbasic.com and click on The QBasic Forum
Forum regulars have their own ways, which include The QBasic Community Forums