title: do until user input yes/no
body: <p>I am trying to write a simple <code>do..until</code> loop and it does not work:</p>
  
  <pre><code>$yesNo = Read-Host -Prompt 'Do you want to add alternative DNS names or IPs into Certificate? Y/N: '
  
  do {
      $dnsipname = Read-Host -Prompt "Please input DNS or IP as dns=alternativeCNname or ip=ipName: "
      Write-Output "$dnsipname" 
      $strQuit = Read-Host " do you want to add another DNS? (Y/N)"
      do {
          $dnsipname = Read-Host -Prompt "Please input DNS or IP as dns=alternativeCNname or ip=ipName: "
          Write-Output "$dnsipname" 
          Add-Content D:\Scripts\expiringCerts\request.inf '`r`n_continue_ = "$dnsipname"'
      } until ($strQuit -eq "Y" -or "y")
  } until ($yesNo -eq "Y" -or "y")
  </code></pre>
  
  <p>This one does loop twice only, but it should loop every time I hit <code>Y</code> but when I hit <code>N</code> or <code>n</code> It should break.</p>
  
  <p>Any ideas?</p>