Hallo Dietlinde,

versuchs mal so
if cond(*not &MyVar) ... oder dowhile cond(&MyVar)...

einfach so als Syntax.