#rule(), #rulenumber()

DESCRIPTION
    returns 0 when called from within a Pikt script begin section,
    1 when called within the first rule,
    2 when called within the second rule, and so on;
    if there are x rules within a Pikt script and #rule() is called
    from within an end section, x+1 is returned
SYNOPSIS
    #rule()
    #rulenumber()
ARGUMENTS
    none
EXAMPLES
// debug macros

tracerule(S)
#ifdef debug
                "rule $text(#rule()): " . (S)
#elsedef
                (S)
#endifdef
        rule
                if $inlin =~ "attempt"  // or: "attempt to create"
                        output mail =tracerule($il)
                        output log "=authlogscan_log" $il
                        // if ...
                        //      =page()
                        // endif
                        next
                endif
SEE ALSO
    #eoi(), #endofinput()
    #innum(), #inputnumber()

    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
Download the
latest official
PIKT release