Skip to main content

Notifications

Copilot Studio - Calling Actions from Copilot S...
Answered

IF ELSE function in Power Virtual Agent

(0) ShareShare
ReportReport
Posted on by 21

I'll get straight to the point.
I was wondering if there was some kind of if else function in PVA.
What I have made in the picture is a flow that compares the given variable that a user types with a list and returns the corresponding description. Now, after the flow is executed, you get a menu of options as to what you want to do.

My question is whether you can also do something that works when people are typing and not clicking on the choices. I think you can see it as a sort of if else statement.

if elseif else

 

Categories:
  • handyman1 Profile Picture
    handyman1 21 on at
    Re: IF ELSE function in Power Virtual Agent

    I've come to this conclusion as well. So I made a loop for all the other values. But it's a bit contradictory since the rest are multiple choice all the time. In my application.

  • Verified answer
    Expiscornovus Profile Picture
    Expiscornovus 31,124 on at
    Re: IF ELSE function in Power Virtual Agent

    Hi @handyman1,

     

    Have you tried adding a branch for all other conditions?

     

    Below is an example of that kind of setup.

     

    1. Click Add between the last questions and the conditions

    2. Select Add a condition > Branch for all other conditions

     

    branchforallotherconditions.png

     

    3. End result should look like below

     

    allotherconditions.png

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard

Featured topics