How can we assign a boolean value to null

if the outageEligible (boolean) is false , then I need to null the value for outage(boolean) 

if(rule!GBL_isnull(ri!outageEligible,false()) , a!save(ri!ouage,null(), a!save(null(),null())) 

above is the code , I am using. But it is not working 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    I tried to turn your code into a more readable version.

    if(
      rule!GBL_isnull(ri!outageEligible,false()),
      a!save(
        target: ri!ouage,
        value: null()
      ),
      a!save(
        target: null(),
        value: null()
      )
    )

    Not sure what you are trying to do here, or where this code snippet is used.

    Maybe something like this might work better:

    if(
      rule!GBL_isnull(ri!outageEligible,false()),
      a!save(
        target: ri!ouage,
        value: null()
      ),
      {}
    )

Reply
  • 0
    Certified Lead Developer

    I tried to turn your code into a more readable version.

    if(
      rule!GBL_isnull(ri!outageEligible,false()),
      a!save(
        target: ri!ouage,
        value: null()
      ),
      a!save(
        target: null(),
        value: null()
      )
    )

    Not sure what you are trying to do here, or where this code snippet is used.

    Maybe something like this might work better:

    if(
      rule!GBL_isnull(ri!outageEligible,false()),
      a!save(
        target: ri!ouage,
        value: null()
      ),
      {}
    )

Children
No Data