Table of Contents

Or

Block Group: Logic
Icon:Or block icon

Returns one value if one or more of its input properties is TRUE, and another value if all input properties are FALSE.

An Or block is simply an If block where the op property is set to "or".

For information on using dataflow blocks, see Dataflow.


Input/Output Properties

These properties can take input and give output.

op specifies the comparison, arithmetic, or text operator to apply to the input values. The operator is used in conjunction with inputs to form an expression that can be evaluated to TRUE or FALSE. By default, the op value of an Or block is "or". The block will not act as described on this page if you change this property. See If Block for more information.

input n specifies one of the input values. One or more of the input n values must evaluate to TRUE for the Or block to return the then value. For example, "input 0 OR input 1" is a comparison expression. If input 0 is TRUE and input 1 is FALSE, the expression evaluates to TRUE and the Or block outputs the then value. Otherwise, if both of the inputs are FALSE, the Or block outputs the else value. If input n is a number, a value of 0 evaluates to FALSE and a value of 1 evaluates to TRUE. Add more input n properties by clicking the plus sign.

then specifies the value to return if one or more of the input properties evaluate to TRUE.

else specifies the value to return if all of the input properties evaluate to FALSE.


Output Properties

These properties can give output. They cannot take input.

output returns either the then value or the else value. It returns the then value if all of the input n values evaluate to TRUE, and the else value otherwise.


Remarks


Model

This is a basic use of the block.

Dataflow Model Description
Or dataflow modelIf any of the input values is equal to TRUE, then the output displays "Eureka". Otherwise, the output displays "Keep going".