#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