Large If statements

Issue 

Rather than use large If statements, use a switch statement instead
 

Solution 


switch([var_severity]) 
{
case 'One': [var_toaddress] = 'Value One'; 
break; 
case 'Two': [var_toaddress] = 'Value Two'; 
break; 
}