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 / if else if in between ...
Copilot Studio
Unanswered

if else if in between range in power virtual agent

(0) ShareShare
ReportReport
Posted on by 94

Respected sir, 

                      I am new to power virtual agent and I have selected option node with Number (Var)

And I have to implement something like the below can you please show me how to In power virtual agent?

 

myNumber=10

if(myNumber<=4){

print(less than or equal to 4)

}

else 

if(myNumber<=10 And myNumber >= 5){

print(In range of 5-10)

}

else 

{

print(Out of range)

}

 

thank you!!

Categories:
I have the same question (0)
  • gregmarbais Profile Picture
    108 on at

    Hey @saurabhtalele I think the only way to do that is basically build conditionals for the top and bottom ranges then use the all other conditions for the in-range variable. Here's a screen grab of what I'm talking about:

    gregmarbais_0-1663939754858.png

    There is a way to add an "AND" condition but you can't reuse the same variable.

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