switch
Last updated
Last updated
switch() function is the Standard function available in 200OK.
Description : The switch function evaluates an expression against a list of values and their corresponding results.
Syntax : fx_switch()
Example : fx_switch(Binod;Mohan;BLR;Binod;VKP;Mukesh;BAM) would return "VKP" as the response.
Here we go with simple scenario using the above function.
Scenario : In a shipping application, a logistics coordinator is determining the destination code for a package based on the recipient's name. They utilize the fx_switch function to evaluate the recipient's name against a list and assign the corresponding destination code, streamlining the shipping process.
Request Side :
Response Side :