repeat if getClickedCommand = exitCmd then halt; delay(100); until getClickedCommand = restartCmd; restart;//процедура