Updated while and if's condition requirements