Using alternatives to ‘if’