# If/else statement

**URL:** <https://community.make.com/t/if-else-statement/48135>\
**Category:** Questions\
**Tags:** google-sheets\
**Created:** [July 27, 2024, 3:08pm UTC](https://community.make.com/t/if-else-statement/48135 "2024-07-27T15:08:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andi\_Thornton](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@Andi\_Thornton](https://community.make.com/u/Andi_Thornton)\
**Post date:** [July 27, 2024, 3:08pm UTC](https://community.make.com/t/if-else-statement/48135/1 "2024-07-27T15:08:25Z")

</div>

![Content](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/f/1fd053ff43e9bcb54d85847c975c4ac05db4f60c.png)  
Hi all. Hope you are having a great weekend. I’m trying to create an automation that posts to social media but the trigger is from Google sheets. So you can see on the attached that day one it looks for the row and sees its for Facebook and that it’s not been “done” so it will post. On day two it will run again looking at the row but it will see that it’s “done” and not post. the bit I’m having trouble with is how do I get it to keep on going through the rows until it finds the next Facebook post that hasn’t been labelled as “done”. So essentially, on day two it would publish row 11 from the spreadsheet.

---

<div class="post-metadata">

**Author:** ![LittleRiverDog](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/littleriverdog/32/41699_2.png) [@LittleRiverDog](https://community.make.com/u/LittleRiverDog)\
**Post date:** [July 27, 2024, 3:12pm UTC](https://community.make.com/t/if-else-statement/48135/2 "2024-07-27T15:12:01Z")

</div>

When you search Google sheets for the next thing to do - could you use a filter - to filter out the “Done” rows…

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/9/397dd7c2b4a76bce8a9faf25a16a19ea3aaf0867.png)

---

<div class="post-metadata">

**Author:** ![Andi\_Thornton](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@Andi\_Thornton](https://community.make.com/u/Andi_Thornton)\
**Post date:** [July 27, 2024, 3:14pm UTC](https://community.make.com/t/if-else-statement/48135/3 "2024-07-27T15:14:14Z")

</div>

absolutely but I can’t work out how to go back to the beginning to search again

---

<div class="post-metadata">

**Author:** ![LittleRiverDog](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/littleriverdog/32/41699_2.png) [@LittleRiverDog](https://community.make.com/u/LittleRiverDog)\
**Post date:** [July 27, 2024, 4:37pm UTC](https://community.make.com/t/if-else-statement/48135/5 "2024-07-27T16:37:08Z")

</div>

Next time the scenario runs it will search from scratch again - starting at row one each time.  
You can configure it to return just one row - or as many as you want to handle.

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [July 27, 2024, 4:42pm UTC](https://community.make.com/t/if-else-statement/48135/6 "2024-07-27T16:42:35Z")

</div>

Hi @Andi_Thornton

The search starts in ascending order. So with the filter mentioned by @LittleRiverDog and limit of 1, you can get this done.

**Regards,**  
_Msquare Automation - Gold Partner of Make_

> [Book a Free Consultation](https://calendly.com/msquarepro/meeting) | [Connect Live](https://calendly.com/msquarepro/msquareautomation-live)

Explore our [**YouTube Channel**](https://www.youtube.com/@msquareautomation) for valuable insights and updates!

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [October 25, 2024, 4:55pm UTC](https://community.make.com/t/if-else-statement/48135/7 "2024-10-25T16:55:58Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


