# If Else Statement for specific row in Data List Viewer

**URL:** <https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604>\
**Category:** Questions about Thunkable X\
**Created:** [March 24, 2024, 12:52am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604 "2024-03-24T00:52:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![nascentaa0obfo](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nascentaa0obfo](https://community.thunkable.com/u/nascentaa0obfo)\
**Post date:** [March 24, 2024, 12:52am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/1 "2024-03-24T00:52:29Z")

</div>

I am creating an If Else statement which makes a variable say either N for if the Image for that row is Checkboxunchecked.png or Y is the image is Checkboxchecked.png. But the problem here is if even one of the checkbox’s in that page is left unchecked, the variable puts N for all the rows. Help Here Please.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/e/ce3482a07346a7fa20d8e85e14c88f853e19193c.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/b/2bc866567b72f53758bb3c6e063af162c07285eb.png)

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [March 24, 2024, 12:59am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/2 "2024-03-24T00:59:26Z")

</div>

You are only setting that one variable for every student. You would need to update the value in the sheet or in some sort of list.

---

<div class="post-metadata">

**Author:** ![nascentaa0obfo](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nascentaa0obfo](https://community.thunkable.com/u/nascentaa0obfo)\
**Post date:** [March 24, 2024, 1:01am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/3 "2024-03-24T01:01:50Z")

</div>

Is there a way to keep this interaction in Thunkable only, as when I upload my actual database into this project, I would have to check the attendence of each student by hand for 100+ students in the sheet. The app is preset to set the students to already attended

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [March 24, 2024, 1:06am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/4 "2024-03-24T01:06:13Z")

</div>

There are several ways to accomplish this. I would just need to see your blocks to see what I’m working with. If you feel comfortable, I can look at your project if you share it. It’s sometimes hard to figure out what someone needs by them just explaining it.

---

<div class="post-metadata">

**Author:** ![nascentaa0obfo](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nascentaa0obfo](https://community.thunkable.com/u/nascentaa0obfo)\
**Post date:** [March 24, 2024, 1:09am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/5 "2024-03-24T01:09:36Z")

</div>

Sure, will send the link to a copy of the project

[https://x.thunkable.com/projectPage/65ff7cc9ed889a7c4fb615a4](https://x.thunkable.com/projectPage/65ff7cc9ed889a7c4fb615a4)

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [March 24, 2024, 1:21am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/6 "2024-03-24T01:21:17Z")

</div>

Ok, I see what you need to do. Give me a few minutes.

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [March 24, 2024, 1:32am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/7 "2024-03-24T01:32:42Z")

</div>

When you submit the attendance it looks like the code is creating rows for all the classes. Is this correct? Do you want it to just submit the attendance of the selected class which is the empty table?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/e/3e637349bfd9034daf504f702e388febbc6d19f4.png)

If so, this is the link to your project. It gets all the data from empty table then stores it to the PP\_Sensei1 sheet.

[https://x.thunkable.com/copy/0695eee0d87769ee41c1993448a37296](https://x.thunkable.com/copy/0695eee0d87769ee41c1993448a37296)

---

<div class="post-metadata">

**Author:** ![nascentaa0obfo](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nascentaa0obfo](https://community.thunkable.com/u/nascentaa0obfo)\
**Post date:** [March 24, 2024, 4:06pm UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/8 "2024-03-24T16:06:53Z")

</div>

Ya, the class which is selected is the class which I want to save the attendence from.

---

<div class="post-metadata">

**Author:** ![nascentaa0obfo](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nascentaa0obfo](https://community.thunkable.com/u/nascentaa0obfo)\
**Post date:** [March 24, 2024, 4:15pm UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/9 "2024-03-24T16:15:44Z")

</div>

Using the (in list (app variable attended )get # i) only saves the first row of data. Also please inform me if you need any other information in order to assist me (The full app is close to 15 pages). Thank you for the help.

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [March 24, 2024, 5:24pm UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/10 "2024-03-24T17:24:50Z")

</div>

Are you using the new project I sent you or copying my blocks from the picture?

I am able to update the attendance on this project.  
[https://x.thunkable.com/copy/f59da44fa9ecfa9945ccc5aadf820090](https://x.thunkable.com/copy/f59da44fa9ecfa9945ccc5aadf820090)

---

<div class="post-metadata">

**Author:** ![nascentaa0obfo](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nascentaa0obfo](https://community.thunkable.com/u/nascentaa0obfo)\
**Post date:** [March 25, 2024, 2:47am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/11 "2024-03-25T02:47:36Z")

</div>

I believe I copied all the code to the main project, but it still doesnt seem to work. Could you check to see if I missed anything?

[https://x.thunkable.com/projectPage/6600e4ece509630f76e3166a](https://x.thunkable.com/projectPage/6600e4ece509630f76e3166a)

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [March 25, 2024, 4:14am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/12 "2024-03-25T04:14:58Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/a/ea39d7615776e55a8c305890f534929407b26b30.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/ab429c3e68eb5b6efe754a68c2f3752e53af898a.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0a18bbc3b3eb6f8bc7cd66d16c6a9b3361450e19.png)

---

<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:** [June 23, 2024, 4:15am UTC](https://community.thunkable.com/t/if-else-statement-for-specific-row-in-data-list-viewer/2911604/13 "2024-06-23T04:15:40Z")

</div>

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