|
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
|