Apparantly at least some variants of Pick do not require a THEN or an ELSE clause and can just rely on the return value. An example exists in the LED editor:
LOOP WHILE READNEXT ID DO
IDLIST<-1> = ID
This particular case should work at the moment.
In the basic grammer there is a special rule which allows READNEXT(in fact any of the onerr/then/else statements to exist within a WHILE or UNTIL conditional within a LOOP or FOR statement.
At the moment both the java source and byte code tree walkers only can handle READNEXT in that location though it should not be too difficult to add other statements.
Log in to post a comment.