P
Philly
I am trying to recode a variable in a query to read:
If Variable is equal to True, give it a 1. If variable is False, give it a
0. If variable is -999, give it a -999. However, I can not get it to work
properly. I am currently writing it like this:
NEWVARIABLE: iif (OLDVARIABLE="True",1) Or iif(OLDVARIABLE="False",0) Or
iif(OLDVARIABLE=-999,-999)
I'm not sure if the operator "Or" is the best one to use in this situation.
Does anyone have a better idea?
Thanks so much!
If Variable is equal to True, give it a 1. If variable is False, give it a
0. If variable is -999, give it a -999. However, I can not get it to work
properly. I am currently writing it like this:
NEWVARIABLE: iif (OLDVARIABLE="True",1) Or iif(OLDVARIABLE="False",0) Or
iif(OLDVARIABLE=-999,-999)
I'm not sure if the operator "Or" is the best one to use in this situation.
Does anyone have a better idea?
Thanks so much!