D
DanH
I am not a javascript person but I need a line or two of code.
Hopefully one of you guys can help please.
Here's my problem. I have a string called 'mystate' and I need to
assign a variable either a 1 or a 2 depending on what it is.
'ND','SD',and 'PA' should return a 2, whereas 'CA', 'TX', and 'NY'
should return a 1.
I am trying to use a 'match' expression and a '?:' but everything so far
has not worked. Still working at it though .
Anyway, if anyone can help i would appreciate it. Thx.
Hopefully one of you guys can help please.
Here's my problem. I have a string called 'mystate' and I need to
assign a variable either a 1 or a 2 depending on what it is.
'ND','SD',and 'PA' should return a 2, whereas 'CA', 'TX', and 'NY'
should return a 1.
I am trying to use a 'match' expression and a '?:' but everything so far
has not worked. Still working at it though .
Anyway, if anyone can help i would appreciate it. Thx.