Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Nested IF Statements in Architect Expression

    Posted 05-20-2025 01:25

    Hi,

    Can someone confirm the maximum number of nested IF statements supported or recommended when using Architect Expression Mode


    #Architect

    ------------------------------
    Cheers
    Zubair
    ------------------------------


  • 2.  RE: Nested IF Statements in Architect Expression

    Posted 05-21-2025 16:37

    @Melissa Bailey any comments/suggestions around the number of nested IF statements that can be used in expression mode? Could excessive nesting lead to errors, or will the logic function correctly regardless of depth? For example

    If(<condition>, true, If(<condition>, true, If(<condition>, true, If(<condition>, true, <so on....>))))



    ------------------------------
    Cheers
    Zubair
    ------------------------------



  • 3.  RE: Nested IF Statements in Architect Expression
    Best Answer

    Posted 05-21-2025 17:02

    60

    https://help.mypurecloud.com/articles/complex-expression-error/

    It will work correctly, just be very careful as you write them.  Sometimes it's worth it to break it out into multiple update date statements to be more readable and understandable.



    ------------------------------
    Melissa Bailey
    Software Engineer
    ------------------------------



  • 4.  RE: Nested IF Statements in Architect Expression

    Posted 05-21-2025 17:27

    Appreciated. Thanks.

    I will keep the suggestion in mind.



    ------------------------------
    Cheers
    Zubair
    ------------------------------