IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
 View Only
Expand all | Collapse all

Nested IF statements or When Statements

  • 1.  Nested IF statements or When Statements

    Posted Fri April 08, 2016 03:58 PM

    Originally posted by: SJacob


    Hi,

    Is there a way to do Nested IF's or When conditional statements in the Map ?

    Any examples is greatly appreciated.

    Thanks,

    SJacob


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Nested IF statements or When Statements



  • 3.  Re: Nested IF statements or When Statements

    Posted Mon April 11, 2016 03:46 AM

    Originally posted by: paul.brett


    An IF where both the conditions have to be true:

    =IF(In1="A",IF(In2=42,"BOTH TRUE","Input 1 is A, but Input 2 is not 42"),"Input 1 is not A (additional conditions may not be met)")
    

    An IF where either of the conditions can be true:

    =IF(In1="A","A TRUE",IF(In2=42,"42 TRUE"))
    

    ...or the same thing done with an EITHER() which can be helpful if evaluating lots of conditions:

    =EITHER(IF(In1="A","A TRUE"),IF(In2=42,"42 TRUE"))
    

    Thank-you.

    Paul

    Follow me on Twitter


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: Nested IF statements or When Statements

    Posted Fri April 15, 2016 11:11 AM

    Originally posted by: SJacob


    Thank You very much. Both the options helped.


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender