Or

From NSB App Studio
Revision as of 01:30, 24 August 2012 by Brendon (talk | contribs)
Jump to navigation Jump to search

result = x Or y

Description

Or returns the logical disjunction of two expressions. result is TRUE, if one or both expressions x and y evaluate to TRUE, otherwise, result is FALSE.

Example

Rem Or Example
'Or performs logical and bitwise disjunction
Dim Test1, Test2, Test3, x, y
x = 1
y = 5
Test1 = x > 0 Or y < 10
Test2 = x > 0 Or y > 10
Test3 = x OR y
Print "Logical:"
Print "  x > 0 or y < 10 = " & Test1
Print "  x > 0 or y > 10 = " & Test2

Output

Logical:
  x > 0 or y < 10 = True
  x > 0 or y > 10 = True

Related Items

And, Eqv, Imp, Not, Xor