Consistently using case instead of if for conditionals in script boilerplate.