如果在 Eclipse rcptt 中满足条件,我想退出循环。
我正在使用以下代码:
proc "wait-until" [val iconName] {
loop [val count 1] [val n 5] {
if [$count | lt $n] {
try{
let [val text [get-button "Configure" | get-property "getToolTipText()" -raw]] {
if [$text | contains $iconName] {
recur [$count | plus 100] [$n]
}
}
} -catch {
show-alert "inside catch"
}
recur [$count | plus 1] [$n]
} -else {
}
}
}
但如果尝试条件也满足,它会继续。
我在哪里做错了?
谢谢