#error()
DESCRIPTION
returns TRUE (1), if evaluating the function argument produces an error;
FALSE (0) otherwise
SYNOPSIS
#error(s)
or:
#error(n)
ARGUMENTS
s - a quoted string, or string expression
or:
n - a number, or numerical expression
EXAMPLES
# pikt +C 'output $text(#error(#err()))'
1
# pikt +C 'output $text(#error(#even(2.5)))'
1
# pikt +C 'output $text(#error($monthname(12)))'
0
# pikt +C 'output $text(#error($monthname(13)))'
1
# pikt +C 'output $text(#error($pwname(-1)))'
1
# pikt +C 'output $text(#error($checksum(6,"/etc/passwd")))'
1
# pikt +C 'output $text(#error($char(-1)))' 1
# pikt +C 'output $text(#error($chop("foobar",-2)))'
1
SEE ALSO
#defined()
#err()
#nil()
Numerical Functions
String Functions