If Not Empty

  if [[ -n "${res}" ]]; then
    echo "contents of res variable are not empty"
    echo "res=${res}"
  fi