if Conditionally perform a command