If true value with multiple fields

Hi, I am trying to get 3 fields if the condition is true but it doesn't seem to be working with brackets.. Can somebody pls shed some light. E.g. if ( condition=true, (field1 field2 , field3), "false field)

OriginalPostID-272292

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    @geetp is there any possibility of having null values for ri!input at initial or in any case, if yes, then first try to handle the null before doing comparison as attached below


    isEmpty Expression Rule
    =======================================
    if(
    or(
    isnull(
    ri!input
    ),
    len(ri!input)<1,
    length(ri!input)<1
    ),
    true(),
    false()
    )
    =======================================

    here ri!input is of Any Type


    Interface
    =================================
    if(
    rule!isEmpty(ri!input),
    {},
    today > ri!input
    )
    ==============================

    also try printing this above statement along with any label of the Form and then Test, hope this work
Reply
  • 0
    Certified Lead Developer
    @geetp is there any possibility of having null values for ri!input at initial or in any case, if yes, then first try to handle the null before doing comparison as attached below


    isEmpty Expression Rule
    =======================================
    if(
    or(
    isnull(
    ri!input
    ),
    len(ri!input)<1,
    length(ri!input)<1
    ),
    true(),
    false()
    )
    =======================================

    here ri!input is of Any Type


    Interface
    =================================
    if(
    rule!isEmpty(ri!input),
    {},
    today > ri!input
    )
    ==============================

    also try printing this above statement along with any label of the Form and then Test, hope this work
Children
No Data