9 Replies Latest reply on Jun 12, 2018 10:54 AM by hakris

    @Return with in IF condition

    adnan645

      Hi,

       

      I observed that @Return doesn't always work properly within IF/ELSEIF/ELSE conditions... for example I have following script:

       

      "Member A"(

      IF( "Member A" == #missing)

      "Member A" = "Member B";

      ENDIF)

       

       

      "Member A"(

      IF( "Member A" <> #missing)

      @Return ("It's an error message", ERROR)

      ENDIF)

       

      If the first condition is met, then second shouldn't and vice versa.

      Sometimes what I face is the first condition is met but business rule also give error meaning the second condition is also being met.

       

      Any reasons for this because of sparse dense members or cell block calcmode.. anything.

       

      Thanks.