Hi! I have maybe a dumb question, but still 🙂
I need to configurate in my PVA a thing, where person that types "Hello" will get a welcoming message that depends on time of the day.
I need it like this:
0-3 Good night
4-11 Good morning
12-17 Good afternoon
18-23 Good evening
I have found this message on this forum with a following expression
if(greater(int(formatDateTime(utcNow(),'HH')),18),'Good evening',if(greater(int(formatDateTime(utcNow(),'HH')),11),'Good Afternoon','Good Morning'))
and tried to add "night" and "morning" but i got an invalid expression.
Can someone help me? I have some diffucuilties with "if" expressions so maybe the answer is pretty easy.