Greeting based on time of day

0
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?
asked
1 answers
3
'good ' +
(if [%CurrentDateTime%] < addHours([%BeginOfCurrentDay%], 12) then 'morning'
else if [%CurrentDateTime%] < addHours([%BeginOfCurrentDay%], 18) then 'afternoon'
else 'evening')

 

answered