Reputation: 13
I'm trying to take an input value in_company_code and use a switch to assign a mask depending on the value. This is what i've written, there are no obvious errors form my IDE, but when i run the script it appears wbs_elem isn't outputted at all, with no errors
switch(in_company_code){
case 1000:
wbs_elem = 'W' + in_wbs_elem;
break;
case 2000:
wbs_elem = 'U' + in_wbs_elem;
break;
case 3000:
wbs_elem = 'M' + in_wbs_elem;
break;
}
I've tried running the script in an online compiler, assigning values to the variables that are assinged in the interface by boomi. I expected to see for my input value of 3000, i would see Min_wbs_elem.
Upvotes: 0
Views: 67