Hello. Having an issue with this script. Not sure where the issue is. This is my first time posting here so please let me know if you need more information. Thanks!

 Code:
if $mount<>'*'
        use $mount /delete /persistent
      endif
      if $persist
        if $user or $pass
          use $mount $unc /user:$user /password:$pass /persistent
        else
          use $mount $unc /persistent
        endif [b]<----This is the line where it's failing[/b]
      else
        if $user or $pass
          use $mount $unc /user:$user /password:$pass
        else
          use $mount $unc
        endif
      endif