Return an object from a loop - Mendix Forum

Return an object from a loop

1

It would be nice to be able to return an object from a loop. 

asked
2 answers

You can also assign the object to be returned to a list. This would save the extra retrieve action.

Created

Could you give your usecase? Because you already can imho. Let say we have objects where you already have an attribute that is unique for instance autonumber you can create a variable integer. Then when you have the condition where you want to return that object change the variable integer with the current autonumber of that object and break. You only have to retrieve the right object again with the help of the variable and you are done.

Regards,

Ronald

 

Created