List procedure?

I will try to explain myself as clearly as possible. I have several individual procedures (for example: Condition01, Condition02, …). I would like to know whether it is possible to create some kind of loop so that all the conditions are executed. I hope this is clear enough.

Thank you in advance.

Previously, I had a procedure that looked like this.

No, at least not for me.
Post the aia (and show all relevant blocks).

1 Like

please post the aia

This is possible with the most recent release because now you can have references to functions that can be stored in lists and then called. For example, the conditions shown in your last picture could be modeled as follows:

Of course, you could also store the references in a variable rather than using the list comprehension to instantiate it in situ.

Edit: You should be able to drag the image above into App Inventor to create the blocks.

1 Like

That is exactly what I wanted. Thank you very much.

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