http://qs321.pair.com?node_id=950402


in reply to If any element-in-array comparision

you need to go through given list at least once, but not with counter. You loop through whole list, preparing your output data, and if there is element bigger than 0.1 you trigger some variable to, say, 1. No need in counter, but in trigger.

Also, you can output the whole array with 'print' and 'join', in one line of code.