Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

Switch - Case

is there is any tutorial about switch case ? 

another q. how to use multible if in "if web page contains .... or ..... "

thank u in advance


Best Answer

Hello Yassin. 


Regarding your first question, consider Switch-case as a series of "if" statements. Please see below an image of a simple process where we "switch" over the variable %Name%. If the Name of the Support Engineer matches the variable %Name%, a simple Display Message pops up, with the name of the Support Officer.



For more information, please navigate to our help file, or specifically here, here and here.


Regarding your second question, there is no way to use "or" in  "if web page contains" action because you need to specify a single control. A nice workaround for this is to use two different "if web page contains", one after the other. 

If you want to add an "and" in your conditional, you can just nest the  "if web page contains" actions.

1 Comment

ADMIN
Answer

Hello Yassin. 


Regarding your first question, consider Switch-case as a series of "if" statements. Please see below an image of a simple process where we "switch" over the variable %Name%. If the Name of the Support Engineer matches the variable %Name%, a simple Display Message pops up, with the name of the Support Officer.



For more information, please navigate to our help file, or specifically here, here and here.


Regarding your second question, there is no way to use "or" in  "if web page contains" action because you need to specify a single control. A nice workaround for this is to use two different "if web page contains", one after the other. 

If you want to add an "and" in your conditional, you can just nest the  "if web page contains" actions.

Login or Signup to post a comment