Doing a very simple loop to display various data,
for _test in @test …
I want to be able to,
1) get the first value _test.name.first()???
2) get the previous value(meaning, the last iteration, so I i iterated the first time, I want to grab it again, when its in the second loop
Thank you
— update
What I mean is this
- Doug, 2. Paul 3.Steve
So when I have Paul as the current name, I want to be able to get the last iteration (Doug) and same with Steve (get Paul)….So like an array, get the last, first but in this case the previous value
Here’s a hacky but straightforward way to do it:
Output: