#innum(), #inputnumber()

DESCRIPTION
    returns the line number of the current input line;
    0 if still in the begin section;
    the line number of the last input line if in the end section
SYNOPSIS
    #innum()
    #inputnumber()
ARGUMENTS
    none
EXAMPLES
#ifdef debug
        rule
                output $inlin
                output "\#unit is $text(#innum())"
                output "\$envhum is $envhum"
                output =newline
#endifdef
        end     // drastic change in /etc/passwd file size
                set #lines = #innum()
                if #defined(%lines) && =deviated(lines, 20%)
                        output mail "the size of /etc/passwd has changed by >= 20%,
                                     was $text(%lines) lines, is now $text(#lines)"
//                      set #crisis = #true()
                endif
SEE ALSO
    #eoi(), #endofinput()
    #rule(), #rulenumber()

    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
View sample
system reboot
Pikt script