The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
IF ... THEN ... ELSE
klemens1959
Member Posts: 9 Contributor II
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!
1
Answers
if(ACTIVITY!="Tumble",0,"BARODIFF")
or something like that.
Scott