web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / If Equals Or Function ...
Power Automate
Answered

If Equals Or Function for Variables

(0) ShareShare
ReportReport
Posted on by 24

Hi Power Automate Community, 

 

I am trying to set a variable to a specific country, to later dynamically use this for different folders etc. 
One thing I can't get to work is to set the variable to the country from the trigger, except for country A and country B I want the variable to be "United AB". 

Any help would be very much appreciated! 

 

if(equals(triggerOutputs()?['body/Country'],'Country A', 'United AB'), if(equals(triggerOutputs()?['body/Country'], 'Country B', 'United AB'), triggerOutputs()?['body/Country']))

 

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Ronja 

     

    Not fully understand about this. So IF the country is NOT Country A or Country B then set to 'United AB'. Is that you after?

  • Ronja Profile Picture
    24 on at

    Hi @abm actually the opposite 🙂 So if it's country A or Country B then set the variable to United AB, otherwise use the existing country. 
    I hope this makes it a bit clearer. 😌

    Thank you!!

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Ronja 

     

    Thanks for your reply.

     

    Try the below

     
    if(or(equals(triggerOutputs()?['body/Country'],'Country A'),equals(triggerOutputs()?['body/Country'],'Country B')),'United AB',triggerOutputs()?['body/Country'])
  • Ronja Profile Picture
    24 on at

    @abm perfect, thank you so much! 🙂

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard