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
Advocate II
Advocate 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
Power Virtual Agents News & Announcements

Power Virtual Agents News & Announcements

Keep up to date with current events and community announcements in the Power Virtual Agents community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Virtual Agents Community Blog

Power Virtual Agents Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (6,591)