The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 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

klemens1959klemens1959 Member Posts: 9 Contributor II
edited November 2018 in Help
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:


If ACTIVITY != "Tumble"
    DIFF= 0

ACTIVITY, DIFF and BARODIFF are attributes of my data set.



  • Options
    sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
    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:


    or something like that.

Sign In or Register to comment.