Pages: [1]
  Print  
Author Topic: How to use if statement in attribute generation?  (Read 525 times)
Red
Newbie
*
Posts: 2


« on: July 19, 2013, 01:04:41 AM »

Hello, I have a simple issue of comparing 2 fields and getting the value of the one that isn't null, with priority on one field

My statement looks like
if(field1 != null, field1, field2)

However, it seems my condition is not correct. What is the way to find nulls in this type of expression?

Thanks
Logged
Marco Boeck
Administrator
Hero Member
*****
Posts: 1450


WWW
« Reply #1 on: July 19, 2013, 07:24:20 AM »

Hi,

the syntax is:
Code:
if(missing(field1)==false,field1,field2)

Regards,
Marco
Logged

Are you from a scientific background and want to use professional features of RapidMiner Studio 7? Check out our RapidMiner Academia program!

Looking for more information? Check out our docs page here: http://docs.rapidminer.com/
Pages: [1]
  Print  
 
Jump to: