In my app the user can do different tasks and if all tasks are done a text should be displayed.
For the tasks I have a component TaskBox with an output variable done, which is true if the task is done.
How can I check if all these tasks are done?
What I have thought so far is to store the instances in a list - loop over it and store if all are done in a variable, which I will put in the Visible method of the text I want to show then.
Set(eTasks, [TaskBox_1, TaskBox_2, TaskBox_3, TaskBox_4, TaskBox_5]);
How can I now loop over that list and check if all are done / one is not done. Or do you have an other idea to solve that, without doing it manually lik:
(because I will have many of them and they should be added easily)
Set(all_done, If(TaskBox_1.done = True and TaskBox_2.done = True ..., ture, false))
In python it would work like that:
all_done = True
for task in eTasks:
if task.done == False:
all_done = False