Thunderstone Software Document Retreival and Management
Search:
Advanced Search
Home | Products | Company | News | Tech Support | Demos | Contact Us
Vortex Manual

RETURN - exit current function

 

SYNOPSIS

<RETURN [$ret]>


DESCRIPTION
The RETURN statement ends the current function, optionally setting the value of $ret to its given argument. It can be used to exit a function early when some condition or error is met.


DIAGNOSTICS
RETURN sets a return value if an argument is given.


EXAMPLE

<A NAME=update user>
  <SQL MAX=1 "select FullName from passwd where User = $user">
  </SQL>
  <IF $loop eq 0>        <!-- no such $user: quit now -->
    <RETURN>
  </IF>
  ... continue to update the user ...
</A>


CAVEATS
The RETURN statement was added in version 2.1.882300000 19971216.


SEE ALSO
BREAK, exit


Copyright © Thunderstone Software     Last updated: Wed Sep 10 11:16:28 EDT 2008
 
Home   ::   Products   ::   Company   ::   News   ::   Tech Support   ::   Demos   ::   Contact Us
Copyright © 2008 Thunderstone Software LLC. All rights reserved.