RapidMiner 9.7 is Now Available

Lots of amazing new improvements including true version control! Learn more about what's new here.

CLICK HERE TO DOWNLOAD

How to compare two macro values in if statement

sgnarkhede2016sgnarkhede2016 Member Posts: 68 Contributor II
edited June 28 in Help
Hello,

How to compare two macro values in if statement

e.g.
if(%(abc}==%{xyz},1,2)

for me it must be true because both values are same i am checking this condition on branch
Tagged:

Answers

  • kaymankayman Member Posts: 506   Unicorn
    edited June 30
    @sgnarkhede2016 , use

    equals(%{macro1},%{macro2})

    This should work with condition type expression in the branch operator as it returns either true or false
    Pavithra_Rao
Sign In or Register to comment.