Page 1 of 1

Help with "foreach"?

Posted: 13 Feb 2011 14:42
by Mesh
Can someone give me a coding example of how "foreach" would be used to cycle through a list of selected items, acting on each of them in turn? The examples in the change log use random strings, which doesn't help me. :)

Re: Help with "foreach"?

Posted: 13 Feb 2011 14:51
by admin
Example 3 in the change log shows it:

Code: Select all

        // selected list items
          foreach($token, <get selecteditemspathnames |>) {
            echo $token;
          }

Re: Help with "foreach"?

Posted: 13 Feb 2011 14:57
by Mesh
I must have glossed over it, I'm sorry.

Thanks, Don!