Logical Expressions

Updated 1 month ago by Nandini

Kissflow will provide these fundamental constructs to achieve logical operations through its expression grammar.   

Function

Signature

Input

Output

Notes

IF

IF(<boolean_expression>,<true_expression>,<false_expresion>)

<boolean_expression>: BOOLEAN<true_expression>,<false_expression>: ANY Kind of Expression

NUMBER

Executes <true_expression_ when <boolean_expression> isevaluated to be <true> Else Executes <false_expression>State:Tamil NaduIF(State="TamilNadu","Yes","No") -> "Yes"IF(State="Andhra","Yes","No") -> "No"

AND

AND(<expr_1>,<expr2>)

<expr_1>, <expr_2>: BOOLEAN

BOOLEAN

Returns True if both expr_1 and expr_2 are True, else Returns False.AND(True(),True()) -> True()AND(True(),False()) -> False()

OR

OR(<expr_1>,<expr2>)

<expr_1>, <expr_2>: BOOLEAN

BOOLEAN

Returns True if one of expr_1 or expr_2 are True, else Returns False.OR(True(),True()) -> True()OR(True(),False()) -> True()OR evaluation is short circuited.

&&

<expr_1> && <expr_2>

<expr_1>, <expr_2>: BOOLEAN

BOOLEAN

This is the infix version of And.Returns True if Both expr_1 and expr_2 are True, else Returns False.True() && True() -> True()True() && False() -> False()

||

<expr_1> || <expr_2>

<expr_1>, <expr_2>: BOOLEAN

BOOLEAN

This is the infix version of OR.Returns True if one of expr_1 or expr_2 are True, else Returns False.True() || True() -> True()True() || False() -> True()OR evaluation is short circuited.

Here are more articles about expressions:


How did we do?