use if-then instead of conjunction

otherwise the status code is non-zero if the condition is false.