5 Replies Latest reply: Jun 4, 2014 8:12 AM by Fjalar Jörundsson RSS

    Multiply applymap and IF – Results in variable

    Fjalar Jörundsson

      Hi! In my script I have one line with many nested IFs and Applymap.

      Can I put the results in a variable to use few lines below in another IF statement?

       

      // Fjalar

       

      if(ApplyMap('Map_Facility',ApplyMap('Map_OrderInfo', %Key_Voucher_Light,%Key_Order))='IRA','SE', if(Applymap('Map_Country',ApplyMap('Map_CustCountry',ApplyMap('Map_Customer',ApplyMap('Map_SuppInvoice',ApplyMap('Map_OrderInfo', %Key_Voucher_Light,%Key_Order)))))=1, if(ApplyMap('Map_CustCountry',ApplyMap('Map_Customer',ApplyMap('Map_SuppInvoice',ApplyMap('Map_OrderInfo', %Key_Voucher_Light,%Key_Order))))='SE','SE','EU'),'Non EU')) as TESTToRegion,