Help Contents / Arithmetic / Logical Operations / or

or tf1 tf2
(or tf1 tf2 tf3 ...)

outputs TRUE if any input is TRUE, otherwise FALSE.  All inputs must be TRUE or FALSE.  (Comparison is case-insensitive regardless of the value of CASEIGNOREDP.  That is, "true" or "True" or "TRUE" are all the same.) 

If some of the inputs are lists instead of boolean values, the get evaluated from left to right, but on the first TRUE argument OR will stop the evaluation. With this it is possible  to avoid many nested IFELSE clauses  neccessarily used in earlier versions of aUCBLogo. 

Examples: 

	or false false		;false  ;-) 
	or false true		;true  ;-) 
	or true false		;true  ;-) 
	or true true		;true  ;-) 
	(or false false true)		;true  ;-) 

	show or 3 < 4 [pr 5 1 < 2] 
	true 
	show or 3==4 [pr 5 1 < 2] 
	5 
	true 


previous: and	next: and2
