An extending axon growth cone is subjected to attractant and repellent cues. It is not clear how these growth cones discriminate the two opposing forces and select their projection paths. Here, we report that in the Drosophila nerve cord the growth cones of longitudinal tracts are subjected to attraction by the Netrin-Frazzled pathway. However, the midline Slit neutralizes this pathway in a Robo-dependent manner and prevents Netrin-Frazzled-mediated attraction of longitudinal tracts. Our results suggest that the loss of a neutralizing effect on the Netrin-mediated attraction is responsible for the longitudinal tracts entering the midline in slit mutants as opposed to a loss of repulsion as is currently believed. This effect is not via a direct inhibition of Frazzled by Robo; instead, it is at a level downstream of Frazzled. Thus, the growth cones of longitudinal tracts subjected to two opposing forces are able to block one with the other and specify their correct lateral positioning along the midline.