# Curent hour in if statement

**URL:** https://community.thunkable.com/t/curent-hour-in-if-statement/1228353
**Category:** Questions about Thunkable X
**Created:** [April 16, 2021, 5:05pm UTC](https://community.thunkable.com/t/curent-hour-in-if-statement/1228353 "2021-04-16T17:05:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![infosmartmobilityccj](https://avatars.discourse-cdn.com/v4/letter/i/f17d59/32.png) [@infosmartmobilityccj](https://community.thunkable.com/u/infosmartmobilityccj)
#### Post date: [April 16, 2021, 5:05pm UTC](https://community.thunkable.com/t/curent-hour-in-if-statement/1228353/1 "2021-04-16T17:05:37Z")

</div>

Dear,

I am using the “if” statement to display the label text accordingly, but nothing is happening:

 ![if](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6bd613787adf3210fba0540227415a2512b9a382.jpeg)

Please help

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 16, 2021, 11:31pm UTC](https://community.thunkable.com/t/curent-hour-in-if-statement/1228353/2 "2021-04-16T23:31:10Z")

</div>

That looks correct to me.

You don’t have it in an event block such as a when screen opens or when button clicked block. You’ll need one of those.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:25pm UTC](https://community.thunkable.com/t/curent-hour-in-if-statement/1228353/3 "2024-11-08T13:25:11Z")

</div>


