on *:TEXT:!check *:#channel:{
var %inis = [color:green]"c:\test1.ini","c:\test2.ini","c:\test3.ini"[/color]
var %F, %L = 0, %R = 0, %N = $+(1-,$numtok(%inis,44))
while (%L < %N) {
inc %L 1
%F = $gettok(%inis,%L,44)
if (!$exists(%F)) { echo 4 -s Skipping %F | continue }
[color:blue];;; Your comparison code goes here ;;;
;;; Use %F as the filename for $readini/$ini ;;;
;;; Increment the %R variable for each match ;;;[/color]
if (%R >= 5) break
}
if (%R < 5) msg $chan Only found %R results
}