Help with greetings times

Help with greetings times i thik i have it all wrong


can someone plz help me with these blocks ?

You’re thinking about this the right way but there’s a key piece of how blocks work that you’re not following:

Each block gets evaluated in order. For example if [current hour] = [5 < 12] first starts by checking to see if 5 is less than 12. Since it is, the < block returns TRUE. Then your = block is checking to see if the current hour (let’s say 9) is equal to TRUE. That doesn’t make sense. We can’t really compare the number 9 to the value TRUE.

What you want instead is if current hour > 5 AND current hour < 12 do…

It’s important that you don’t compare numbers to text. The 12 block is not the same as the “12” block. You should only be using the number blocks here.

1 Like

ok