on *:text:*:#:{
;number entered as $1,264,543.10
tokenize 32 $strip($1-)
;control codes stripped and line re-evaluated with standard spaces being token separators.
var %a = 1, %b = $0
while %a <= %b {
if $remove($gettok($1-,%a,32),$chr(44),$chr(36)) isnum 100000- {
;$gettok($1-,%a,32) on the first loop where %a = 1, becomes $1,264,543.10
;commas and dollar sign removed using $remove leaving 1264543.10
;check if 1264543.10 is equal to or greater than 100000
;comparison shows true, thus a message using the original entered number $1,264,543.10 is posted back to the channel.
.msg $chan The number $gettok($1-,%a,32) was said.
}
inc %a
;var %a increases by 1, making it 2, which is outside of the loop limit, thus ending the loop.
}
}