[an error occurred while processing this directive] Advanced Command Return Values Unless otherwise noted, all functions in the Form Processor return a numeric value. This value is only used in conditional statements (IF statements). When a function completes successfully, a logical one (1) is returned, when the function encounters and error it returns a logical zero (0). You may evaluate them is this fashion:
if (&delete("foobar.baz"))

# a logical one is returned
	$status = "File deleted successfully";
else

# function returned a logical zero due to an error
	$status = "An error occurred while trying to delete the file";
endif

format screen
$status
.

You may reverse the value returned with the exclamation (!) mark. This is the act of applying a logical NOT, thus inverting the return value; this can be useful when evaluating multiple functions or conditions in one statement.

Table of Contents / WebCom Help / Login / Search [an error occurred while processing this directive]