yeah, it won't work, since the parser makes assumptions - have to decide which form of `if` is used - and then it does not backtrack.
i think at some point i came with a
very contrived way to accomplish something like the asked... except can't remember now. Ooops.
PS. Behold! I just devised you a new
Rube Goldberg machine:
Brightscript Debugger> tbl = ["r", "a", "n", "d", "o", "m"]: for i = 0 to tbl.count()-1: ? {false:"", true: i.toStr() + chr(10)}[(tbl[i] > "m").toStr()]; : next
0
2
4
PPS. perhaps my old idea was
tbl = ["r", "a", "n", "d", "o", "m"]: for i = 0 to tbl.count()-1: while tbl[i] > "m": ? i: exit while: end while: next