Is there a case statement /function in Appian . or an if ...else if in rules exp

Is there a case statement /function in Appian . or an if ...else if in rules expressions . Coding in terms of if , if ... is time consuming and code readability is bad .

OriginalPostID-219960

OriginalPostID-219960

Parents
  • Hi Dhiraj Kumar,
    There is one function "choose( index, choice1, choice2, … )", you can used it as switch case logic...


    follow the following link for more details:
    docs.appian.com/.../fnc_logical_choose.html

    And for if_else

    "if(condition,statement1, statement2)"
    in above syntax if condition is true "statement1" will get executed else "statement2"

    In these way you can used if_else in Appian
Reply
  • Hi Dhiraj Kumar,
    There is one function "choose( index, choice1, choice2, … )", you can used it as switch case logic...


    follow the following link for more details:
    docs.appian.com/.../fnc_logical_choose.html

    And for if_else

    "if(condition,statement1, statement2)"
    in above syntax if condition is true "statement1" will get executed else "statement2"

    In these way you can used if_else in Appian
Children
No Data

 Discussion posts and replies are publicly visible