You have to use conditional statement to set perform nested operations