Trying to go thru the contents of a table with the following layout
indexfield1,art1,art2,art3,art4
In this table indexfield and art1 are always filled art2, art3, and art4 can be empty.
In pseudo-code this is what I want to do:
for each art of table where indexfield = x:
do bladibla
if last of x:
do blodiblo
How can I do this in Python ?