getting around the basic IF - THEN statement
Hi all,
Prior to Picbasic Pro, the IF statement is limited as a simple GOTO.
It seems like I remember creating an AND statement that worked as a pseudo IF statement. like this.
B0 = 5 AND B1 = 25
in other words: If B1 = 25 Then make B0 5
Or perhaps there is another way to do this that you have found??
tnx,
dw
IF-THEN Standard PIC Compiler
' * * * IF B0 = 25 THEN B1 = 5 * * *
IF B0 = 25 THEN SET_B1
IF B0 <> 25 THEN NOTHING
SET_B1:
B1 = 25
NOTHING:
' * * * Continue * * *