BCX Console Demonstration Program s12.bas |

DIM a DIM b a = 1 b = 2 IF a = 1 AND b = 2 THEN ? "Both expressions are true" END IF IF a = 1 OR b = 2 THEN ? "At least one expression is true" END IF IF (a + 0 = 1 OR b <> 2 + 0) OR(b + 0 = 2 AND a + 0 = 1) THEN ? "At least one expression is true" END IF

*Result:*

Both expressions are true At least one expression is true At least one expression is true