How to compare two macro values in if statement

sgnarkhede2016
sgnarkhede2016 New Altair Community Member
edited November 2024 in Community Q&A
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

Answers

  • kayman
    kayman New Altair Community Member
    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