Greeting based on time of day
So i want to place a greeting based on the time of day (good morning, good afternoon or good evening). How would the expression look like?
Karim El Idrissi
'good ' +
(if [%CurrentDateTime%] < addHours([%BeginOfCurrentDay%], 12) then 'morning'
else if [%CurrentDateTime%] < addHours([%BeginOfCurrentDay%], 18) then 'afternoon'