renamed condition -> logical