01-05-2018 03:40 PM - edited 03-01-2019 04:04 AM
i have tried to nest a loop within another loop in lux with two end loops. But i got an error saying end loop missing.
[loop i 1..$max_time]
[loop j 1..$min_time]
[endloop]
[endloop]
Solved! Go to Solution.
01-26-2018 11:33 AM
You can work around this using a macro:
[macro inner]
[loop j 1..2]
!echo $j
[endloop]
[endmacro]
[shell test]
[loop i 1..2]
!echo $i
[invoke inner]
[endloop]
01-26-2018 11:33 AM
You can work around this using a macro:
[macro inner]
[loop j 1..2]
!echo $j
[endloop]
[endmacro]
[shell test]
[loop i 1..2]
!echo $i
[invoke inner]
[endloop]
01-26-2018 11:37 AM
Yes thanks for the reply. Thats what i ended up doing like the example in lux repo and like you showed using a macro. But was wondering if there any support for direct nesting
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide