Logic and Conditional Operators

Comparison Operators

Logic Functions

if()

Tests whether the first expression returns true. If so, it evaluates the second expression. If the first expressions returns false, it evaluates the third expression. The output type depends on your inputs.

ARGUMENT 1

The expression that evaluates to true or false.

ARGUMENT 2

The expression to evaluate if the first expression is true.

ARGUMENT 3

The expression to evaluate if the first expression is false.

Example

ARGUMENT1→ 1==2 ARGUMENT2→ "Equal" ARGUMENT3→ "Unequal"

if( 4 == 5, "Equal", "Unequal" )

Nested IF example

Nested IF Statement if(if(if(prop("Tags") == "Work", true, false), dateBetween(prop("Due"), prop("Today"), "days") <= 14, true), prop("Hour Allocated") > 2, true)

Break down again to see each IF Statement