[an error occurred while processing this directive]
Forms Processor Advanced Commands
Contents   Index of Commands   Search the Forms Processor Docs   
length Returns the length of a string.

$output = length($string);

Example:

# checks to see if the zip code and phone number are of proper length

# put the length of $zip_code into $zip_len

$zip_len = length($zip_code);

# compare (inline) the length of the phone number to 12 and the length of the 
# zip code to 5

if (length($phone_number) != 12 | $zip_len != 5)

# incorrect length

format screen

Error, either you did not enter your phone number correctly or you did not enter your zip code correctly, please reenter this information.
.

endif


See also:  substr ($string, start, length) function  index ($string, $substr, start) function [an error occurred while processing this directive]