The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

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.