Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2010 I don't see the logic here..maybe I'm blind

$
0
0
Hello there..
I've been trying to figure out where VB went to school, because this math doesn't make sense to me. I have two variables, "po" and "minpayout".

Name:  problem.jpg
Views: 53
Size:  14.7 KB


As you can see, "po", which has a value of 7, is clearly LESS THAN (<) "minpayout", with a value of 50. However, it still runs the "else" part of the if statement. I've taken out the "$" and decimals to try to make this as simple as possible, but I still can't get a desired result. Please help, this has been baffling me for over an hour. If you need any additional details, let me know..I posted what I figured would be relevant.
Attached Images
 

Viewing all articles
Browse latest Browse all 27348

Trending Articles



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