IF ... THEN ... ELSE

klemens1959
New Altair Community Member
Which operator support if then else? I would like to assign a new or replace the value of an attribute based on the value of another attribute:
Example:
If ACTIVITY != "Tumble"
DIFF= 0
else
DIFF = BARODIFF
ACTIVITY, DIFF and BARODIFF are attributes of my data set.
Thanks!
Example:
If ACTIVITY != "Tumble"
DIFF= 0
else
DIFF = BARODIFF
ACTIVITY, DIFF and BARODIFF are attributes of my data set.
Thanks!
Tagged:
1
Answers
-
hi..I would do this in "Generate Attributes". You can then go to Edit List and under attribute name, name your new attribute DIFF. Under function expressions, do something like this:
if(ACTIVITY!="Tumble",0,"BARODIFF")
or something like that.
Scott
1