Going back to a module until a certain condition is met?

I’m a new user, and I found similar topics and read them, but I’m still not sure how to do it yet. So, please let me ask if you don’t mind.

I’m using an external API to convert a file to another format. This conversion takes some time according to the size of the file being converted. There is an API call to check the conversion status. So, I’m checking the status after sleeping for 30 seconds.

I added a router and set up a filter to move forward (get the converted file) if the status is “finished”. If not “finished”, I would like to go back to the 30-second sleeping module if possible. I mean I would like to see the following if possible:

It seems no flow control modules are available to make this happen simply. I understand that Repeater requires a specific number to be repeated. But, in my case, it depends.

I’m sure there are ways to accomplish what I would like to do.

It would be great if anyone could provide suggestions and recommendations.

Thank you!

Kaz

Welcome to the Make community!

This is actually a common question.

The only method closest to a do-while loop in programming in a Make scenario is a repeater-error.

You might find this topics useful:

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

2 Likes

Thank you very much for the reply. I went through the topics and I was able to implement what I would like to see. I mean I did some tests and it worked as I expected.

I have added a Repeater module before the Tools: Sleep module and added an HTTP: Make a request module with a bogus URL which returns the “Service is not reachable.” connection error and a Commit module at the end.

The scenario now looks like the following:

Again, thank you very much!

Kaz

2 Likes

That’s amazing, you’re on your way to becoming a Make wizard with this newfound knowledge!

Glad I could help, and thanks for sharing your final solution with us!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

4. Do join the unofficial Make Discord server for live chat and video assistance

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

1 Like