Krzysztof Szynter wrote: > Hi all > > Have got a big problem. This is my code: > > [snipped] If I understand you correctly, you just need to find maximum. If it's so, there is better way: built-in max function: >> max([1, 2, 3]) 3 regards, anton.