REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: or

or  value1  value2

Returns the first value ORed with the second.

Arguments:

value1 [logic! integer! char! tuple! binary! bitset! typeset! datatype!]

value2 [logic! integer! char! tuple! binary! bitset! typeset! datatype!]

See also:

and   not   xor  

Description

An infix-operator. For LOGIC values, both must be FALSE to return FALSE; otherwise a TRUE is returned. For integers, each bit is separately affected. Because it is an infix operator, OR must be between the two values.

print true or false
true
print (10 > 20) or (20 < 100)
true
print 122 or 1
123
print 1.2.3.4 or 255.255.255.0
255.255.255.4


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin