Am Samstag, 28. September 2002 20:10 schrieb Ed Grimm:
> Because [- exit -] does the same thing?
> > Why is there no [$ return $] ?
What I intended was more like
[$ sub Example $]
[$ var data $]
[- $data = shift
$data = DoSomeThingWith($data); -]
[$ if (not($data)) $] [$ return ("Oups!"); $] [$ endif $]
Some HTML...
[+ $data +]
[$ return $data; $]
[$ endsub $]
Of course there are many other ways to do this (eg calling
DoSomeThingWith($data) first, and then Example($data) ), but I think using
return would be more intuitive.
mfG,
Kjell Morgenstern
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]