For Each inside expression Outsystem Mobile

Is it possible to have a for each/ looping inside an expression? 

Thank you

Hi Coba,

The answer is No. What are you trying to do?



Hi Coba,

As José already stated, this is not possible, and afaik not possible in most (all?) imperative programming languages. A For Each doesn't have an output, so what use would it be inside an expression?

Also, the beauty of the OutSystems Platform is that the code is _visual_, so it's easy to trace the program flow. If a For Each could be hidden inside an expression, this would defeat the purpose of having a visual tool (one of the reasons to use the If() sparingly!).