#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
 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
Learn about the
piktc
program