Options

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

  • Options
    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.