#or()

DESCRIPTION
    returns TRUE if any of a series of logical values or expressions are TRUE (non-zero);
    FALSE otherwise (if none of the logical values or expressions are TRUE or non-zero)
SYNOPSIS
    #or(x1,x2,...)
ARGUMENTS
    x1,x2,... - a series of logical values, or logical expressions, separated by commas
EXAMPLES
# pikt +C 'output $text(#or(2+2==5,#false(),#isalpha("foo")))'
1

# pikt +C 'output $text(#or(2+2==5,#false(),#isalpha("3")))'
0
bypass_weekend
                if #or(=friday && =evening, =saturday, =sunday)
                        quit
                fi
                if #or(#lineage == #err(), #lineage < 0, #monthturnovers > 1)
                        next    // not in current year, or bad input line
                endif
SEE ALSO
    #and()
    #true()
    #false()
    #not()
    #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 2018-01-02.   This site is PIKT® powered.
Copyright © 1998-2018 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
core file
deletion
Pikt script