IF CONDITION WITH MORE THAN 3 PARAMETERS

Certified Senior Developer

Hi Appian Gurus,

I recently came across a code like this : 

I noticed that using the If() function with more than three parameters works like a nested If condition. However, I couldn’t find any documentation about this behavior in Appian’s official documentation. Is it acceptable to use the If function in this way?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    We have also used the if function with multiple parameters; however, during our code review with Appian before go-live, it was recommended to avoid using undocumented features since they can be deprecated at any time without prior notice. Additionally, such implementations might not be flagged by Appian design tools like the expression editor or health check, potentially leading to unnoticed issues or future compatibility problems. Therefore, it is advisable to use a!match() or choose() when handling multiple conditions.

Reply
  • 0
    Certified Senior Developer

    We have also used the if function with multiple parameters; however, during our code review with Appian before go-live, it was recommended to avoid using undocumented features since they can be deprecated at any time without prior notice. Additionally, such implementations might not be flagged by Appian design tools like the expression editor or health check, potentially leading to unnoticed issues or future compatibility problems. Therefore, it is advisable to use a!match() or choose() when handling multiple conditions.

Children
No Data