for (@room) { for (@days) { for(@hours) { do stuff here; if (crossover_loc <= current_location) { use parent1; } else { use parent2; } } } }