Add line gate condition