if/then/else works