Say "Good week"

Hello all.

I found script for say good evening or good night.

But impossible to found the script for say "good week" for Monday, Tuesday, Wednesday, Thursday and Friday and say "good weekend" for Saturday and Sunday.

It's only possible ?

Big thanks :slight_smile:

This should get you started

{if: {time: d} >= 1 AND {time: d} <= 5 }"Good Week"{else}"Good Weekend"{endif}

Let's break it down step by step:

{if: {time: d} >= 1 AND {time: d} <= 5}: This is the condition for the if statement. {time: d} returns the current day of the week as a number, where Monday is 1 and Sunday is 7. The condition checks if the day of the week is greater than or equal to 1 (Monday) AND less than or equal to 5 (Friday). If this condition is true, the snippet will display "Good Week".

"Good Week": This text will be displayed if the condition in step 1 is true, meaning the day of the week is between Monday and Friday (inclusive).

{else}: This part of the snippet indicates that if the condition in step 1 is not true (meaning the day of the week is not between Monday and Friday), the text following this command will be displayed.

"Good Weekend": This text will be displayed if the condition in step 1 is false, meaning the day of the week is either Saturday or Sunday.

{endif}: This command signals the end of the if statement.

4 Likes

wow... ok... impossible for me to find this fabulous solution.

Big big thanks :slight_smile:

1 Like

Happy to help.