OR Function: Difference between revisions
From Planfix
(Created page with "== Go To == * Standard operators and Planfix functions *Calculated fields *Reports") |
No edit summary |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#seo: | |||
|title=OR Function | |||
|titlemode=append | |||
|keywords=planfix, function, OR, or | |||
|description=OR Function | |||
}} | |||
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)''' | |||
''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 | checkbox field]], you should use 1 and 0 | |||
== Go To == | == Go To == | ||
*[[Standard functions | Standard operators and Planfix functions]] | *[[Standard functions | Standard operators and Planfix functions]] | ||
*[[Calculated fields]] | *[[Calculated fields]] | ||
*[[Reports]] | *[[Reports]] |
Latest revision as of 06:32, 10 May 2024
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)
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