Default [Q] Correct syntax for ongoing events?

Hi everyone.

So I made this piece of code in Zooper, and as you can see it tells the time and how long until the next event.

Code:
It's [nm]#DP# #Dmm#[/nm].
Your next event is
"#C0TITLE#" 
in $0<#C0sRd#?#C0sRd 'day'#$$1<#C0sRd#?s$ $0<#c0srh#?#C0srh 'hour'#$$1<#c0srh#?s$ $0<#c0srm#?#c0srm 'min'#$. 
However, once the event has started it will count the time since it started if it isn't over yet. I know I could fix it with an if statement to show the next event if the first one is ongoing.

What is the correct way to do this? I really just need to know how to define "currently ongoing event" or something like that.

Thank you in advance!