Caenorhabditis elegans shows chemoattraction to 0.1-200 mM NaCl, avoidance of higher NaCl concentrations, and avoidance of otherwise attractive NaCl concentrations after prolonged exposure to NaCl (gustatory plasticity). Previous studies have shown that the ASE and ASH sensory neurons primarily mediate attraction and avoidance of NaCl, respectively. Here we show that balances between at least f...