survey.sh: use compact if statements to reduce filesize by 500+ bytes