Add if/else documentation to README