Generate if-statements.