convert to conditional statement
(#6)