Use the help files. /help $nick
$nick(#,0,o) will return the 0th position of all ops, 0 indicating which position and o indicating it's ops. Since it's 0 it will return how many ops there are.

If you specify 1, it will return the name of the first op and so on.

Code:
var %ops $nick(#,0,o)
while (%ops) {
var %active $addtok(%active,$nick(#,%ops,o),32)
dec %ops
}
Msg # Active ops: %active
Something like this.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net