Community & Support
Learn
Marketplace
Menu
Menu
🎉Community Raffle - Win $25
An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win
Home
›
Discussions
›
Community Q&A
How to compare two macro values in if statement
sgnarkhede2016
New Altair Community Member
Jun 29, 2020
Updated
Nov 5, 2024
by
Jocelyn
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
Find more posts tagged with
AI Studio
MacOS
Macros
All Replies
Sort by:
Sort by
Oldest
â–¾
1 - 1 of 1
↑
1
↑
kayman
New Altair Community Member
Jun 30, 2020
Updated
Jun 30, 2020
by
kayman
@sgnarkhede2016
, use
equals(%{macro1},%{macro2})
This should work with condition type expression in the branch operator as it returns either true or false
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
Groups
Best Of
equals(%{macro1},%{macro2})
This should work with condition type expression in the branch operator as it returns either true or false