Text that depends on the current time

Hello!
Please tell me how to configure the snippet so that the answer is different and depends on the current time.
For example, from 08:00 to 11:00 it will "Good morning!"
From 11:01 to 17:00 "Good afternoon!"
and from 17:01 to 20:00 "Good evening!"
Please tell me if this is even possible
I am grateful for the help.

Hi @Yaroslav_Berezhnitsk - welcome to the forum.

Here's how you can do that:

Good {if: {time: HH} <= 11}morning{elseif: {time: HH} > 11 AND {time:HH} <= 17}afternoon{elseif: {time: HH} > 17}evening{endif},

Just click on the "Copy to Text Blaze" button in the top right of the window above, and it will copy the snippet to your dashboard, where you can set up the label and shortcut.

Additionally, I suggest you keep this snippet as a standalone, and then use the {import} command to import it into any email template you create. That way, if you decide to change the greeting in any way, it will be reflected in every snippet where you're using it.

Here are some additional resources for you (with videos and loads of practical examples), in case you'd like to learn the ins and outs of these cool commands:

Let me know if you have any other questions :slight_smile:

Thank you very much for your quick response.
You are the best!!!