A dishwasher for washing utensils according to an automatic cycle of operation, comprising: a tub at least partially defining a treating chamber for receiving utensils for cleaning; a spraying system for supplying liquid to the treating chamber and having a sprayer comprising a rotatable spray arm (34, 134, 234, 334, 434) comprising: a body (56, 156, 256, 356, 456) having an interior (58, 158, 258); a liquid passage (59, 159, 259, 359, 459) provided in the interior (58, 158, 258); a plurality of outlets (60, 160, 260, 360, 460) extending through the body (56, 156, 256, 356, 456) and in fluid communication with the liquid passage (59, 159, 259, 359, 459); a valve body (70, 170, 270, 370, 470) selectively fluidly coupling the plurality of outlets (60, 160, 260, 360, 460) to the liquid passage (59, 159, 259, 359, 459) and moveable between at least two positions, with one of the at least two positions fluidly coupling a first subset of the plurality of outlets (60, 160, 260, 360, 460) to the liquid passage (59, 159, 259, 359, 459), and a second of the at least two positions fluidly coupling a second subset of the plurality of outlets (60, 160, 260, 360, 460) to the liquid passage (59, 159, 259, 359, 459), with the second subset differing from the first subset by at least one of the plurality of outlets (60, 160, 260, 360, 460), and having multiple of the plurality of outlets (60, 160, 260, 360, 460); an actuator (80, 180, 280, 480) operably coupled to the valve body (70, 170, 270, 370, 470) and moving the valve body (70, 170, 270, 370, 470) between the at least two positions, characterised in that: the actuator (80, 180, 280, 480) is operably coupled to the rotatable spray arm (34, 134, 234, 334, 434) and the valve body (70, 170, 270, 370, 470) and moves the valve body (70, 170, 270, 370, 470) between the at least two positions based on a rotational position of the rotatable spray arm (34, 134, 234, 334, 434) a tub at least partially defining a treating chamber for receiving utensils for cleaning; a spraying system for supplying liquid to the treating chamber and having a sprayer comprising a rotatable spray arm (34, 134, 234, 334, 434) comprising: a body (56, 156, 256, 356, 456) having an interior (58, 158, 258); a liquid passage (59, 159, 259, 359, 459) provided in the interior (58, 158, 258); a plurality of outlets (60, 160, 260, 360, 460) extending through the body (56, 156, 256, 356, 456) and in fluid communication with the liquid passage (59, 159, 259, 359, 459); a body (56, 156, 256, 356, 456) having an interior (58, 158, 258); a liquid passage (59, 159, 259, 359, 459) provided in the interior (58, 158, 258); a plurality of outlets (60, 160, 260, 360, 460) extending through the body (56, 156, 256, 356, 456) and in fluid communication with the liquid passage (59, 159, 259, 359, 459); a valve body (70, 170, 270, 370, 470) selectively fluidly coupling the plurality of outlets (60, 160, 260, 360, 460) to the liquid passage (59, 159, 259, 359, 459) and moveable between at least two positions, with one of the at least two positions fluidly coupling a first subset of the plurality of outlets (60, 160, 260, 360, 460) to the liquid passage (59, 159, 259, 359, 459), and a second of the at least two positions fluidly coupling a second subset of the plurality of outlets (60, 160, 260, 360, 460) to the liquid passage (59, 159, 259, 359, 459), with the second subset differing from the first subset by at least one of the plurality of outlets (60, 160, 260, 360, 460), and having multiple of the plurality of outlets (60, 160, 260, 360, 460); an actuator (80, 180, 280, 480) operably coupled to the valve body (70, 170, 270, 370, 470) and moving the valve body (70, 170, 270, 370, 470) between the at least two positions, the actuator (80, 180, 280, 480) is operably coupled to the rotatable spray arm (34, 134, 234, 334, 434) and the valve body (70, 170, 270, 370, 470) and moves the valve body (70, 170, 270, 370, 470) between the at least two positions based on a rotational position of the rotatable spray arm (34, 134, 234, 334, 434)