How to use if condition with a label [message #1793976] |
Tue, 21 August 2018 10:29 |
Eclipse User |
|
|
|
Hi all,
first of all I would like to specify that I'm not a programmer and that I've started to use RCPTT recently (I've read the documentation present on Eclipse site).
I have the following problem.
I have a label that can have more than one value.
I would like to create a script that allows me for example to click on "Stop" if the label is "Idle" and to click on "Start in standard mode" if the label is "Stopped" (see image in attach).
I tried to start with the script below but, as I read also in the documents, if the statement is false, it returns an error.
if [get-label "Stopped" | get-text | eq "Stopped" ]{
get-button "Start in standard mode" | click }
How can I do to avoid this error and go ahead? Is there a better statement to use?
Thanks in advance to everyone :) !!!
Attachment: Capture.PNG
(Size: 3.07KB, Downloaded 138 times)
|
|
|
Powered by
FUDForum. Page generated in 0.04765 seconds