Why not use a subroutine?  You say you don't want to, then describe
just what a subroutine is: a block of code for a specific purpose
(hopefully documented at the top), with RETURN to get out back to the
main code.

Personally, I like subroutines!
-- 
Kate Stanton
Walstan Systems Ltd
4 Kelmarna Ave, Herne Bay, Auckland 1011, New Zealand
Phone: + 64 9 360 5310  Mobile: + 64 21 400 486
Email: [email protected]

On 8 February 2011 10:01, Dave Laansma <[email protected]> wrote:
> I have to agree with Steve on this one, to my knowledge you're going to
> have to use either indented IF/THEN/END or GOTO.
>
> That is unless there is a different syntactical statement set available.
>
> The thing is they all likely decompile to the same instructions, so
> we're debating cosmetics here.
>
> Personally I like indented IF/THEN/END ... adds clarity
>
> Sincerely,
> David Laansma
> IT Manager
> Hubbard Supply Co.
> Direct: 810-342-7143
> Office: 810-234-8681
> Fax: 810-234-6142
> www.hubbardsupply.com
> "Delivering Products, Services and Innovative Solutions"
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Steve Romanow
> Sent: Monday, February 07, 2011 3:42 PM
> To: [email protected]
> Subject: Re: [U2] Does UV have a "BLOCK" command
>
> On 2/7/2011 3:39 PM, George Gallen wrote:
>>
>>> LOOP
>>>     block code
>>>     block code
>>>     if condition then EXIT
>>>     block code
>>>     EXIT
>>> REPEAT
>>>
>>> Would be nice if....
>>>
>>> BEGIN BLOCK
>>>     block code
>>>     block code
>>>     if condition then EXIT
>>>     block code
>>> END BLOCK
>>>
> Why not just
>
> block code
> block code
> if not(condition) then
>   block code
> end
>
>
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to