No ja neviem Doteraz som robil pomocou if, a while som nikdy nepotreboval Inak mám to ošetrené pomocou try-catch, len som chcel vedieť prečo to nešlo