The result of a modulus-2 is always going to be 0 or 1, so if you can put the "even" and "odd" results in a 2 -element array, using it as a subscript would be a way to achieve the outcome.
On 5/1/18, ToddAndMargo <toddandma...@zoho.com> wrote: > On 04/30/2018 06:47 AM, Elizabeth Mattijsen wrote: > >> Perhaps this is a simpler solution: >> >> for split( "\n", $ClipStr ) -> $evenline, $oddline? { >> say “Purple $evenline”; >> say “Green $_” with $oddline; >> } > > Two lines at a time. Fascinating! Thank you! >