|
1. This is invalid code; the END statement can only be used at the end of a plan definition, not in the middle. There is currently no way to abort a plan halfway through as you want to. The only way to achieve it is by using nested plans.
To see a way to do what you want, take a look at the tunnel sample blueprint; this drills through a hill until it reaches air on the other side.
2. The various branching directives (IFBLOCK, CHANCE, RANDOM, etc) are intended to be used to call sub-plans. This is how you can get multiple statements on a branch.
3. The tower goes on forever... a 2/3 chance of adding another layer each time. In theory, it could go to the top of the world (at which point the processing will automatically stop as the values are invalid) but in practice it never gets there.
I suppose it would make sense to add directives like 'IFYLT' and 'IFYGT' for 'if ycoord < ... ' and 'if y coord > ...'? I'll add this to the wishlist, along with a 'break' directive to exit a plan early.
The 'break' directive is actually awkward to do, as directives do not return an exit status. There might be some big changes required.
_________________ Steve Shipway UNIX Systems, ITSS, University of Auckland, NZ Woe unto them that rise up early in the morning... -- Isaiah 5:11
|