OR Function: Difference between revisions
From Planfix
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
*the condition can be an arithmetic expression. If the result of this expression is a non-zero number, then the condition is considered to be fulfilled. If the result of the expression is zero, then the condition is considered not fulfilled. | *the condition can be an arithmetic expression. If the result of this expression is a non-zero number, then the condition is considered to be fulfilled. If the result of the expression is zero, then the condition is considered not fulfilled. | ||
*When checking a custom Checkbox field, you should use 1 and 0 | *When checking a custom [[Checkbox | checkbox field]], you should use 1 and 0 | ||
Revision as of 18:01, 5 December 2019
This function returns the Boolean value "true" if one condition is true. It is usually used in conjunction with the IF function.
Format:
- OR(condition1;condition2)
- OR(condition1;condition2)
where:
- condition1 / condition2 - logical expressions using >, <, =, >=, <=, !=, other functions, report column values or fields
Examples:
IF(OR(D="Column text";C>100500);"Good";"Bad")
Notes:
- the condition can be an arithmetic expression. If the result of this expression is a non-zero number, then the condition is considered to be fulfilled. If the result of the expression is zero, then the condition is considered not fulfilled.
- When checking a custom checkbox field, you should use 1 and 0