Complex If Condition

Certified Senior Developer

if(
false,
null,
false,
1,
2
)

 

-- Above is a Valid IF condition on Appian. Can you guess the answer and has IF been designed so by Appian ? Is it a best practice or an known issue.

 

But Appian does not define so on its help

*
if(condition, valueIfTrue, valueIfFalse)
 
 
*
Returns valueIfTrue if condition returns true; returns valueIfFalse otherwise.
 
 
*
Returns: Any Type
 
 
*
condition (Boolean): A test that determines whether valueIfTrue or valueIfFalse will be returned.
 
 
*
valueIfTrue (Any Type): The value to be returned if condition returns true.
 
 
*
valueIfFalse (Any Type): The value to be returned if condition returns false.

  Discussion posts and replies are publicly visible