Any scripting help available? Why is: if(($asctime($ctime, H)>7) && ($asctime($ctime, H)<22)) evaluating to true before 7 am? reddit / irc ---------------------------------------------------------------------- MoodyAsparagus · 2023-08-16 21:55 It's all in the title. It's for an AdiIRC script which is nearly 100% compatible with mIRC scripting. if (($asctime($ctime, H)>7) && ($asctime($ctime, H)<22)) Testing just $asctime($ctime, H) does return the correct time. But the code that runs in this statement runs at 3am. It shouldn't. ---------------------------------------------------------------------- KindOne · 2023-08-16 23:15 You have syntax issues. Math operations such as ```>``` and `````` and ```1) { echo -a foobar } ``` ... You want to do this: ```//if (1 > 1) { echo -a foobar }``` ... https://en.wikichip.org/wiki/mirc/operators ---------------------------------------------------------------------- MoodyAsparagus · 2023-08-16 23:27 Excellent. Thank you.