The accepted solution checks whether parameters wherewere set by testing against the count of parameters given. If this is not the desired check, that is, if you want to check instead whether a specific parameter was set, the following would do it:
for i in "$@" ; do if [[ $i == "check parameter" ]] ; then echo "Is set!" break fi done Or, more compactly,:
for i in "$@" ; do [[ $i == "check argument" ]] && echo "Is set!" && break ; done