mIRC Homepage
Posted By: Maelish IF {Between two times} - 28/05/15 02:13 PM
Is there a way to do an IF statement between two time. For example, 04:00 and 10:00?
Posted By: splinny Re: IF {Between two times} - 28/05/15 02:50 PM
if (($time(HH:nn) > 04:00) && ($v1 < 10:00))
Posted By: Maelish Re: IF {Between two times} - 28/05/15 03:14 PM
Here is my test that seems to fail.

Code:
on *:TEXT:test-phrase:#channel:{
  if (($time > 04:00:00) && ($time < 12:00:00)) {
    //msg #channel Morning 
  }
}


Ah never mind. This does work, there was a broken bit of code above this script that kept it from running.
© mIRC Discussion Forums