Thunderstone Software Document Search, Retrieval, and Management
Search:
Vortex Manual
 

exit - exit program

 

SYNOPSIS

<exit [$code]>


DESCRIPTION
The exit function causes the script to terminate immediately. It can be used to quit a script from within a complicated set of function calls, which might otherwise require numerous returns and checks. An optional exit code $code may be given; the default is 0.


DIAGNOSTICS
exit returns nothing.


EXAMPLE

<A NAME=checklogin>
  <$pw = "FRvEhbGTRAWug">
  <pwencrypt $pass $pw>
  <IF $ret neq $pw>
    Your password is incorrect.
    <exit>
  </IF>
</A>

This function could be called to check a user's password at any point, without having an IF statement after every call: it only returns if the password is correct.


CAVEATS
State information may be lost if $url hasn't been printed yet.


SEE ALSO
RETURN


Copyright © Thunderstone Software     Last updated: Mon Feb 18 10:28:15 EST 2013
 
Home   ::   Products   ::   Solutions   ::   How to Buy   ::   Support   ::   Contact Us   ::   News   ::   About
Copyright © 2013 Thunderstone Software LLC. All rights reserved.