adding if conditions, actions, and else if actions