A dishwasher for washing dishes according to an automatic cycle of operation, comprising: a tub at least partially defining a treating chamber for receiving dishes for cleaning; and a spraying system for supplying liquid to the treating chamber and having a sprayer (30, 32, 34, 134, 232) comprising: a body (56, 156, 256) mounted within the tub for movement about a rotatable axis (64, 164) and having an upper surface (58, 158, 258), a lower surface (60, 160, 260), and an interior (62, 262); a liquid passage (66, 166, 266) provided in the interior (62, 262); at least one upper outlet (68, 168, 268) extending through the upper surface (58, 158, 258) of the body (56, 156, 256) and in fluid communication with the liquid passage (66, 166, 266); at least one lower outlet (70, 170, 270) extending through the lower surface (60, 160, 260) of the body (56, 156, 256) and in fluid communication with the liquid passage (66, 166, 266); a valve body (72, 172, 272) moveable relative to the body (56, 156, 256) to selectively fluidly couple the at least one upper outlet (68, 168, 268) and the at least one lower outlet (70, 170, 270) to the liquid passage (66, 166, 266), an actuator (80, 180) operably coupled to the valve body (72, 172, 272) to move the valve body (72, 172, 272) based on the rotation of the body (56, 156, 256) and characterized in that the actuator (80, 180) reciprocally moves the valve body (72, 172, 272) within the body (56, 156, 256) based on the rotation of the body (56, 156, 256). a tub at least partially defining a treating chamber for receiving dishes for cleaning; and a spraying system for supplying liquid to the treating chamber and having a sprayer (30, 32, 34, 134, 232) comprising: a body (56, 156, 256) mounted within the tub for movement about a rotatable axis (64, 164) and having an upper surface (58, 158, 258), a lower surface (60, 160, 260), and an interior (62, 262); a liquid passage (66, 166, 266) provided in the interior (62, 262); at least one upper outlet (68, 168, 268) extending through the upper surface (58, 158, 258) of the body (56, 156, 256) and in fluid communication with the liquid passage (66, 166, 266); at least one lower outlet (70, 170, 270) extending through the lower surface (60, 160, 260) of the body (56, 156, 256) and in fluid communication with the liquid passage (66, 166, 266); a valve body (72, 172, 272) moveable relative to the body (56, 156, 256) to selectively fluidly couple the at least one upper outlet (68, 168, 268) and the at least one lower outlet (70, 170, 270) to the liquid passage (66, 166, 266), an actuator (80, 180) operably coupled to the valve body (72, 172, 272) to move the valve body (72, 172, 272) based on the rotation of the body (56, 156, 256) and characterized in that the actuator (80, 180) reciprocally moves the valve body (72, 172, 272) within the body (56, 156, 256) based on the rotation of the body (56, 156, 256). a body (56, 156, 256) mounted within the tub for movement about a rotatable axis (64, 164) and having an upper surface (58, 158, 258), a lower surface (60, 160, 260), and an interior (62, 262); a liquid passage (66, 166, 266) provided in the interior (62, 262); at least one upper outlet (68, 168, 268) extending through the upper surface (58, 158, 258) of the body (56, 156, 256) and in fluid communication with the liquid passage (66, 166, 266); at least one lower outlet (70, 170, 270) extending through the lower surface (60, 160, 260) of the body (56, 156, 256) and in fluid communication with the liquid passage (66, 166, 266); a valve body (72, 172, 272) moveable relative to the body (56, 156, 256) to selectively fluidly couple the at least one upper outlet (68, 168, 268) and the at least one lower outlet (70, 170, 270) to the liquid passage (66, 166, 266), an actuator (80, 180) operably coupled to the valve body (72, 172, 272) to move the valve body (72, 172, 272) based on the rotation of the body (56, 156, 256) and characterized in that the actuator (80, 180) reciprocally moves the valve body (72, 172, 272) within the body (56, 156, 256) based on the rotation of the body (56, 156, 256).