OR

y = a OR b

Logical OR. Right side is not evaluated if left side evaluates to True.

Truth table:

a b a OR b
0 0 0
0 1 1
1 0 1
1 1 1

See BOR for bitwise OR.

Example:

a = 1       ' Change value to 1,2 or other

if (a == 1) OR (a == 2) then
    print "a is 1 or 2"
endif
Language
If there is insufficient information on this page and you wish learn more about OR, please send an email to smallbasic@gmail.com. You can help to improve information about OR by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.