Skript

Skript

743k Downloads

loop objects

Adawasda opened this issue ยท 2 comments

commented

Suggestion

loop %objects% as %variable%or loop %objects% and store in %variable%
My english is not good enough sorry.
Read more in why?

Why?

I searched a lot, but I never found it.
My idea is to simplify loops, sometimes expressions like loop-value-2, loop-value-5, etc. can be confusing and sometimes it is more difficult to read the code.
And if you add syntax by type: loop %objects% as %some local variable% or loop %objects%. in %variable% This will help make the code cleaner, and I've seen it a lot in different languages.
Variable will be deleted after looping is over.
Like:
image

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.
commented

Ye i know you can store loop-value in var and use it but i have too much loops and sometimes i cannot read my code

commented

Duplicate of #6052