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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Cant use a condition c...
Copilot Studio
Answered

Cant use a condition comparing 2 variables

(0) ShareShare
ReportReport
Posted on by 30

I'm trying to create a condition that checks if {x}Var2 is equal to {x}Var1 (entered at an earlier stage within the same topic) in PVA.

It seems there is a limitation (unless I'm missing something) as I'm only allowed to use a condition with Var against a value.

example of what PVA allows me to do:

Condition: {x}Var2 is equal to 10

 

example of what I want to do (and can't):

Condition: {x}Var2 equals {x}Var1

 

Any idea on how to do the above?

Thank you,

Categories:
I have the same question (0)
  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @HaimOz ,

     

    We have some limitations using the Condition action.

    You can suggest the idea here: https://powerusers.microsoft.com/t5/Ideas/ct-p/pva_ideas

    Yesterday I submitted one idea related to "or" condition.

     

    One workaround is to call Power Automate to validate the condition using two variables and return the response to PVA.

     

  • HaimOz Profile Picture
    30 on at

    Thanks @renatoromao , just added an idea.

    Feel free to back me up 😉

    https://powerusers.microsoft.com/t5/Power-Virtual-Agents-Ideas/Allow-using-2-variables-in-PVA-condition/idi-p/576979#M249

     

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    I already voted for your idea! 🙂

    During the validation of your idea, you can use my suggestion (Power Automate).

  • HaimOz Profile Picture
    30 on at

    True... tried and it works. Will use it.

    Its a shame though that I have so many Actions going out to PA because PVA doesn't allow so many things (yet).

    I'm sure it adds to the administrative complexity (maintaining so many flows and also has a performance implications I'll witness down the track.

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Yes, and consuming a high part of your Power Automate workflows runtimes.

    But I think that Microsoft is improving a lot this product, as soon will be great to work only with PVA 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 787

#2
Vish WR Profile Picture

Vish WR 300

#3
Haque Profile Picture

Haque 262

Last 30 days Overall leaderboard