1. Re: Short Circuiting
>Isaac suggested something along the lines of (I'm paraphrasing):
>
>> try:
>> if length( s ) > 2 then
>> if compare( s[1..3], "EOF" ) = 0 then
>> ... [alpha]
>> else
>> ... [beta]
>> end if
>> else
>> [gamma]
>> end if
>
>The problem with his example is that I'm stuck at [beta] when I want to
be at
>[gamma]. That's part of my complaint.
I don't pretend to understand what you're trying to do entirely but
wouldn't getting to [gamma] be as easy as removing the "esle" statement
just before it. This way if the length of "s" is greater than 2 then
either [alpha] or [betta] would be executed and then [gamma] would be
executed regardless. Is this what you want?
Sincerely,
Lewis Townsend
|\ ____ _ _ _ _ __
| \ | __/ || / | // || / __ \
| \ ||_ || //|| // || ||__\|
| \ | _| || // || // || \___ \
| |\ \ ||__ ||// ||// || |\__||
| | \ \|___\ |_/ |_/ || \____/
| | \ \ _____ _______
| | \ \ | __ \ | _ _ |
| | \ \ ||__|| |/ | | \|
| | \ \ | __ / | |
| |______\ \ || \\ | |
|___________\ || || |_|
Keroltarr at hotmail.com
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com