Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

How to compare two macro values in if statement

sgnarkhede2016sgnarkhede2016 Member Posts: 152 Contributor II
edited June 2020 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: 662 Unicorn
    edited June 2020
    @sgnarkhede2016 , use

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

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