Additional loop algo/asset

Posted By: MatPed

Additional loop algo/asset - 10/24/19 22:21

Hi,
Outside the main Algo/Asset loop for performance reason I'd like to perform, once a day, certain calculation going through all the Algo/Asset loop.
I was looking for Enumeration loops ( for(all_algos) { ... } and for(used_assets) { ... } ), but, accordingly to the manual, they can not be nested.
Which is the recommended way to code such loop?

Thank you in advance
Posted By: jcl

Re: Additional loop algo/asset - 10/25/19 09:18

Use a for(all_algos) loop and a 'normal' asset loop, like this:

for(N=0; Assets[N]; N++) { asset(Assets[N]); ... }

Posted By: MatPed

Re: Additional loop algo/asset - 10/25/19 10:19

So only the macro cannot be nested usual methods works. Thank you
© 2024 lite-C Forums