![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hello Is it possible to create complex conditionals using AND or OR clauses? Quote:
Thank you in advance M. |
| |||
|
Hello, It is possible to check the complex conditions with Automation Anywhere. For AND clause, insert nested If commands. The text format of commands would appear as follows, If $Prompt-Assignment$ Equal To "A" Then If $Prompt-Assignment$ Equal To "B" Then Comment: Please enter the conditional commands here. End If End If For OR clause, insert ‘ElseIf’ option of 'If' command. The text format of commands would appear as follows, If $Prompt-Assignment$ Equal To "A" Then Comment: Please enter the conditional commands here. Else If $Prompt-Assignment$ Equal To "B" Then Comment: Please enter the conditional commands here. End If Hope that helps. If you could tell us more about your case, we would be able to help you more with specific task. |
| |||
|
Hello Thank you for your answer, I have already used nested IFs or IF-ELSEIFs but it's not the same: In case of AND the drag of nested IFS is only aesthetic & having to repeat the IF command, however when it comes to simulating an OR with ELSEIFs it's a whole problem because you have to repeat whole chunks of code for each ELSEIF: Quote:
Quote:
Maybe AND & OR for conditionals would be a nice touch to future versions of AA! |
![]() |
| Thread Tools | |
| Display Modes | |
| |