We are getting off Mike's topic but it wasn't really the issue of being well structured that bother me since I have been known to use a few GOTOs myself.

Seeing that jump in the middle just started me thinking. Kix is an excellant scripting language but to me it does seem somewhat unsophisticated. I have often wonder how kixtart could possibly track all the push & pulls & keep the book keeping straight when you use a goto. In your example consider:


IF EXPRESSION (push)
IF EXPRESSION (push)
IF EXPRESSION (push)
goto test
ENDIF (pop)
ENDIF (pop)
:test
ENDIF (pop)

When you consider that you could be calling this code scrap with a call statement that is embedded in an IF-ELSEIF-ENDIF statement it gets even worse.

Because I was unsure about how sophisticated kix was in handling these situtations I tended to avoid them.

_________________________
Jack