Forum Discussion

TimEgerton1's avatar
TimEgerton1
Qrew Member
5 years ago

Issue with Is Null

Hi,

Can anyone assist with the IsNull part of this formula which is returning a syntax error of "Expecting )" at the first comma.

var TimeOfDay TOD = [Interaction Time];

If(
$TOD > ToTimeOfDay("12:01am") and $TOD <= ToTimeOfDay("12:00pm"), "Morning",
$TOD > ToTimeOfDay("12:00 pm") and $TOD <= ToTimeOfDay("5:00 pm"), "Afternoon",
$TOD > ToTimeOfDay("5:00 pm") and $TOD <= ToTimeOfDay("12:00 am"), "Evening",
IsNull($TOD ,"", "Other")

Thanks,

------------------------------
Tim Egerton
------------------------------

4 Replies