Hi,
I'm relatively new to Appian and came across a use of the if() function that didn't seem to fit with the online documentation and syntax. According to some more experienced developers it wasn't unusual, but I was disappointed not being able to figure it out on my own.
How would you all go about understanding a function use that didn't seem to match known syntax? Or help me read the syntax better:
if( condition, valueIfTrue, valueIfFalse )
showWhen: if( local!status = cons!APPL_STS_OFF, local!level= cons!APPL_LVL_THIS, local!level = cons!APPL_LVL_THAT )
Discussion posts and replies are publicly visible
If you do need to check a value against multiple conditions, a good alternative to nested if() statements (or using this undocumented behavior in a single if()) is the a!match() function.
https://docs.appian.com/suite/help/23.3/fnc_logical_match.html
Here's an example that shows using it to check multiple conditions: https://docs.appian.com/suite/help/23.3/fnc_logical_match.html#using-the-equals,-whentrue,-and-then-parameters