in reply to Re^2: Loop once on condition 1, many times on cond. 2?
in thread Loop once on condition 1, many times on cond. 2?
No, because the ?: delivers either a list consisting of the single value or all the keys to the 'foreach' loop statement . So if that is only one value, the loop executes only for that single value.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Loop once on condition 1, many times on cond. 2?
by punch_card_don (Curate) on Oct 09, 2008 at 15:37 UTC | |
by AnomalousMonk (Archbishop) on Oct 09, 2008 at 18:19 UTC | |
by gone2015 (Deacon) on Oct 09, 2008 at 16:57 UTC |