changed assignment for conditional operator

also workaround for enumerate[resume] ignoring counter
Merge pull request #2 from FloRinke/master

changed assignment for conditional operator