Change a node based on a new input