single
and multi
have no value. They are not defined anywhere in your function or globally.
You need to define what they mean before your function will work.
If they are just words, you need to wrap them in quotes "single"
rather than single
.