title: Example of Switch Statements
body: <p>If the total of this textbox is: PostDiscountTextBox.Text = $500.00, how do we make Switch statements stating that if the Post-discount Cost amount is between 0.00 and 999.99, display a message box with the message of "This amount qualifies for 'A-100' frequent flier miles" and an "OK" button?</p>
  
  <p><strong>Will someone provide an example of a switch statement?</strong></p>
  
  <p>I only have this so far, and I don't think it follows anything at all. Will someone guide me through this? Thank you.</p>
  
  <pre><code>        switch (PostDiscountCostTextBox.Text)
          {
              case (0.00 &lt; &amp;&amp; PostDiscountCostTextBox.Text &lt;= 999.00)
  </code></pre>
  
  <p>Thank everyone who helped, but I am trying to figure out how to use a switch statement that evaluates Post-discount Cost based on a range of numeric values (nothing about an if statement). Yes, many cases will be put, and these will be my first two cases. Will someone be kind enough to provide me an example so that I could fill the rest of my cases in? I have lots. Thank you.</p>
  
  <p>If the Post-discount Cost amount is <strong>between 0.00 and 999.99</strong>, display a message box with the message of "This amount qualifies for 'A-100' frequent flier miles." and an "OK" button. No title bar text or icon should be used.</p>
  
  <p>If the Post-discount Cost amount is <strong>between 1,000.00 and 1,499.99</strong>, display a message box with the message of "This amount qualifies for 'B-500' frequent flier miles." and an "OK" button. No title bar text or icon should be used.</p>