如果计时器X正在运行,则mIRC
我想做一个如果语句,将检查计时器是否正在运行 前如果计时器X正在运行,则mIRC,irc,mirc,Irc,Mirc,我想做一个如果语句,将检查计时器是否正在运行 前 如果只想检查计时器是否正在运行,则不需要使用property.secs 顺便说一下,我不建议在文本匹配上使用通配符,因为它可以匹配所有内容 on $*:text:/^!timercheck\s(.+\s)/:#:{ if ($timer($regml(1))) { code here for working} else { code here for not working } } 或者你可以用$iif on $*:text:/^!timerc
如果只想检查计时器是否正在运行,则不需要使用property.secs 顺便说一下,我不建议在文本匹配上使用通配符,因为它可以匹配所有内容
on $*:text:/^!timercheck\s(.+\s)/:#:{ if ($timer($regml(1))) { code here for working} else { code here for not working } }
或者你可以用$iif
on $*:text:/^!timercheck\s(.+\s)\s/:#:{
msg $chan $+($nick,:) Timer $qt($regml(1)) is $iif(!$timer($regml(1)),not) running
}
举例来说
^第一件事
\s=命令后的空格
.+\s=空格后的第一个字
on $*:text:/^!timercheck\s(.+\s)/:#:{ if ($timer($regml(1))) { code here for working} else { code here for not working } }
on $*:text:/^!timercheck\s(.+\s)\s/:#:{
msg $chan $+($nick,:) Timer $qt($regml(1)) is $iif(!$timer($regml(1)),not) running
}