Time Dynamic: Good <morning/afternoon/evening>

Would it be possible to have a Good <morning/afternoon/evening> with the morning or evening being dynamic based on the time of day?

You can implement that using the {time: H} command which will give you the current hour in a 24-hour format combined with an {if} command.

For example:

Good {if: {time: H} < 12}morning{elseif: {time: H} < 17}afternoon{else}evening{endif},
...

See:

https://blaze.today/commands/time
https://blaze.today/commands/if

3 Likes

Wow, Saves a lot of trouble