# Displaying a list of days of the week in the future, without returning a blank

**URL:** <https://community.thunkable.com/t/displaying-a-list-of-days-of-the-week-in-the-future-without-returning-a-blank/2255329>\
**Category:** Questions about Thunkable X\
**Created:** [February 2, 2023, 8:14pm UTC](https://community.thunkable.com/t/displaying-a-list-of-days-of-the-week-in-the-future-without-returning-a-blank/2255329 "2023-02-02T20:14:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deanmachine](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deanmachine/32/138759_2.png) [@deanmachine](https://community.thunkable.com/u/deanmachine)\
**Post date:** [February 2, 2023, 8:14pm UTC](https://community.thunkable.com/t/displaying-a-list-of-days-of-the-week-in-the-future-without-returning-a-blank/2255329/1 "2023-02-02T20:14:06Z")

</div>

Hello all, I’m trying to add a forecast to my water and weather app. Problem I’m having is showing future days of the week, without returning a blank.

![Screen Shot 2023-02-02 at 10.08.23 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/2/e2ff2f329942c6f908ff4366c8f9b4a4b9da3b8c.png)

I have a list in Airtable with Sunday – Saturday. When I check a 7-day forecast on a Thursday, it shows Friday and Saturday, then returns a blank because it doesn’t start the list over.

![Screen Shot 2023-02-02 at 10.09.11 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/7/67063740d098b9fd46a0a95b78ac4a608948faaf.png)

I tried using a `current day of the week + 1` block, with a `"null"` and a `null`, then redirecting back to `row id 1`. Also tried checking for `"day"` in the text. I’m still not getting any love back, though.

 ![Screen Shot 2023-02-02 at 10.08.59 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/d/3d3e429d7d7c52617912b55ff844b1ca5503f19a.png)

Any ideas what I’m doing wrong? Or suggestions I should try?

Cheers,  
Dean…

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [February 2, 2023, 10:26pm UTC](https://community.thunkable.com/t/displaying-a-list-of-days-of-the-week-in-the-future-without-returning-a-blank/2255329/2 "2023-02-02T22:26:29Z")

</div>

if today is thursday, current day of the week is 5 - it’s fine to add +1 or +2 to current day of the week, but once you add +3, current day of week becomes 8! (but there are only seven days of the week!)

here’s the fix:

replace your  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/12761c7050d276a7ce177f3106d8ba0169f3ffd5.png)

with this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/1/e1047e3f064e601592b57fe9b133396148c67c2c.png)  
this will make sure that day of week will always be 1 thru 7.

and of course do the same for day of the week + 2, etc

---

<div class="post-metadata">

**Author:** ![deanmachine](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deanmachine/32/138759_2.png) [@deanmachine](https://community.thunkable.com/u/deanmachine)\
**Post date:** [February 3, 2023, 12:19am UTC](https://community.thunkable.com/t/displaying-a-list-of-days-of-the-week-in-the-future-without-returning-a-blank/2255329/3 "2023-02-03T00:19:51Z")

</div>

Ahhh, got it. So it treats `current day of the week` as an integer, not as text. I figured the +1 was just moving down the list, not doing math.

Makes perfect sense when you know how it actually works. Thank you!! @manyone

Cheers,  
Dean…

---

<div class="post-metadata">

**Author:** ![deanmachine](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deanmachine/32/138759_2.png) [@deanmachine](https://community.thunkable.com/u/deanmachine)\
**Post date:** [February 3, 2023, 1:07am UTC](https://community.thunkable.com/t/displaying-a-list-of-days-of-the-week-in-the-future-without-returning-a-blank/2255329/4 "2023-02-03T01:07:38Z")

</div>

After trying a few different permutations (and getting all Thursdays, which is today), here’s what ultimately worked. Maybe it’ll help someone else.

Thanks again, @manyone!!

![Screen Shot 2023-02-02 at 5.03.51 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8e3a2ab95f688d4c783c64d192eaff19c3992ee2.png)

 ![Screen Shot 2023-02-02 at 5.03.41 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/9/79d87a64a5af0bd041d9fa4d02263150de820bc4.png)

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [February 3, 2023, 1:09am UTC](https://community.thunkable.com/t/displaying-a-list-of-days-of-the-week-in-the-future-without-returning-a-blank/2255329/5 "2023-02-03T01:09:08Z")

</div>

nice fix!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [May 4, 2023, 1:09am UTC](https://community.thunkable.com/t/displaying-a-list-of-days-of-the-week-in-the-future-without-returning-a-blank/2255329/6 "2023-05-04T01:09:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
