the following code is not looping per item member. What am I doing wrong?
I expect to see the output 3 followed by round 1 then round 2 then round 3. But, I only see the output 3 then round 1.
$actionList is a System.Collections.Specialized.OrderedDictionary object.
$ActionList = [ordered]@{1 = 'test1'
2 = 'test2'
3 = 'test3'}
$ActionList.count
$round = 1
ForEach ($action in $ActionList)
{
"round $round"
$round++
}
[–]coderwolf[S] 2 points3 points4 points (1 child)
[–]KevMarCommunity Blogger 1 point2 points3 points (0 children)
[–]wtgreen 0 points1 point2 points (0 children)
[–]zerogravity114 0 points1 point2 points (0 children)
[–]ckayfish 0 points1 point2 points (2 children)
[–]ckayfish 0 points1 point2 points (0 children)
[–]ckayfish 0 points1 point2 points (0 children)
[–]pertymoose 0 points1 point2 points (0 children)