5 Replies Latest reply on Jul 6, 2021 9:31 AM by Vinayak Bhusanur

    Decode function in CAI

    Priscilla Daniel New Member

      I am trying to use Decode function in CAI expression editor like the one below:

      util:decode( ITEM_ID, 10, 'Flashlight', 14, 'Regulator', 20, 'Knife', 40, 'Tank', 'NONE' )

       

      The syntax is decode(value, search1,result1,args,default)

       

      The validation is correct but it throws an expression error while running the process.