Created conditional statement for results.

Created conditional statement for results.