Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: Nested IF Statement

$
0
0

Hi Robert,

 

 

 

 

It can be written in this way.

 

 

 

 

If I25="AB" then"OM Can",

else if I25="AK" then "OM",

else if I25="AL" then "OM",

else if I25="AR" then "OM",

else if I25="AZ"then "FM",

else if I25="BC"then "OM Can",

else if I25="CA"then "MM"

else "not found"

 

 

 

you may also club conditions with same results like

 

 

 

If I25 in ["AB","BC"] then "OM Can",

else if I25 in["AK","AL","AR"] then "OM"

else if I25="AZ"then "FM",

else I25="CA"then "MM"

else "not found"

 

 

 

 

Thanks,

Chetan


Viewing all articles
Browse latest Browse all 9129

Trending Articles