#not()

DESCRIPTION
    returns TRUE if the given condition is FALSE (0);
    else FALSE if the given condition is TRUE (non-zero)
SYNOPSIS
    #not(x)
ARGUMENTS
    x - a logical value, or logical expression
EXAMPLES
# pikt +C 'output $text(#not(#false()))'
1

# pikt +C 'output $text(#not(#true()))'
0
        rule    // bogus shell
                if #and(#not($shell eq ""), #not(-e $shell), #not(#sysacct),
                        #not($user =~ "^(=nobody)$"))
                        output mail "User $user has nonexistent shell ($shell):"
                        output mail "  $inline"
                endif
SEE ALSO
    #and()
    #or()
    #true()
    #false()
    #if()

    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
indent-unindent
directives