ifelse

a command that takes a Boolean expression and two sets of commands as input and runs the first set of commands if the Boolean expression is true and runs the second set of commands if the Boolean expression is false