📖⚡OR (Conditional)

Apply logical OR to a condition statement.


  

' OR (Condition) Example
' IfOR.txt
' Kic8 

  ' Initialise our variable 
  LET B0 = 0

DO

  ' Test B0
  IF b0 < 3 OR B0 > 5 THEN

    ' Do something visible
    TOGGLE 0

  ENDIF

  ' Increase B0 so it fails test later
  LET B0 = B0 + 1
LOOP

Related Commands:

todo: Tutorials: Simple Logic