cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
saurabhtalele
Helper I
Helper I

if else if in between range in power virtual agent

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!!

1 REPLY 1
gregmarbais
Helper II
Helper II

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.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Virtual Agents Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Virtual Agents!

Users online (3,103)