Complex sentence: The school uniform is mandatory for students in Years 7-11; in year 12-13, students may wear casual to school as long as it conforms to the school's dress code.
Split into simpler sentences: The school uniform is mandatory for students in Years 7-11. But in Year 12-13, students may wear casual clothes to school as long as it conforms to the school's dress code.