Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Getting error with if/else statement

$
0
0
I'm sure the syntax is right.

// Check if amount equals $1.00
                if (totalChange >= 100)
            {    
           
                MessageBox.Show("Equal to $1.00");
            
            
                else

                MessageBox.Show("Not equal to $1.00");
            }
           



Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>