Simulink Logic explanation in detail: Beginner to Advance