Eclipse-RCPTT If condition Implementation

478 views Asked by At

Can some briefly explain how "If" condition works in Eclipse-RCPTT script or link where can I get information regarding this?

1

There are 1 answers

0
Adam Horvath On

Quote from your comment:

" I need to catch if there is any window popup and need to do something on that popup window"

That's too general to answer, with "try" you can write code that reacts if a window is missing:

try {
    get-window "My Dialog" | get-button OK | click
} -catch {
    // Window was missing, let's try something else
}

There's no generic "switch" or "if" window title matches, instead a write a separate case for each situation.