Well, I'm amazed. It really goes against the grain using something I can't see declared.... Thanks Repsak.
Maybe I will try the distro decay system now.....
Author
Message
MuadDib POL Developer
Joined: 13 Feb 2006 Posts: 830 Location: Indiana, USA
Posted: Mon Jan 08, 2007 9:27 am Post subject:
iterators are great things.
Author
Message
Austin POL Developer
Joined: 30 Jan 2006 Posts: 354 Location: San Diego, California
Posted: Mon Jan 08, 2007 12:27 pm Post subject:
_(var)_iter is a variable you get inside a foreach loop that tells you where you are in it.
foreach tom in (array)
_tom_iter would give you a number and tom would be the value of that index
foreach entry in (dictionary)
_entry_iter would give you the key name you're using and entry would be the value.
Great indeed, but the documentations on this topic is inadequate.
Author
Message
Austin POL Developer
Joined: 30 Jan 2006 Posts: 354 Location: San Diego, California
Posted: Mon Jan 08, 2007 12:58 pm Post subject:
Its existed inside of POL for a very, very long time.
It was changed slightly in 095 and was documented.
I think its also noted in an updated version of Racalac's script guide.
Its been discussed on the POL forums numerous times.
*Its been used in distro scripts for a while.
* Most learn from looking at other scripts than any other resource.
Author
Message
MuadDib POL Developer
Joined: 13 Feb 2006 Posts: 830 Location: Indiana, USA
Posted: Mon Jan 08, 2007 1:12 pm Post subject:
Forums is a good place for information, that's why I read most all posts, not just the ones that look interesting, or pertain to problems of my own