Wrote a conditional statement and set variables to test the code.