Like the comment in the code says,
$1- will contain the the INI filename each time it's called. You won't be able to search for
help=1 using $ini() though, to do that you'd use $readini() but you need to specify a section. INI files are in the format:
[firstsection]
key=value
anotherkey=anothervalue
[anothersection]
somekey=blah
So, what section is the
help=1 supposed to be in within the INI file? Or can it be in any section within each file?
Assuming there is a specific section then use this:
alias checkini {
; $1- holds the filename to check
if ($readini($1-, SECTION HERE, help) == 1) {
inc %ini_matches_count
}
}
Just change
SECTION NAME to the relevant section name.
If it can appear in any section then you have to cheat and use $read() instead of a proper INI identifier:
alias checkini {
; $1- holds the filename to check
if ($read($1-, wnt, help=1)) {
inc %ini_matches_count
}
}