read ${1:yn} if [[ $$1 =~ [Yy] ]]; then echo "${2:#statement}" else echo "${3:#statement}" fi