# I'm an idiot.. but.. what's the right/better way to do this

**URL:** <https://forum.kirupa.com/t/im-an-idiot-but-whats-the-right-better-way-to-do-this/319696>\
**Category:** Uncategorized\
**Created:** [March 1, 2011, 11:34pm UTC](https://forum.kirupa.com/t/im-an-idiot-but-whats-the-right-better-way-to-do-this/319696 "2011-03-01T23:34:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smeared](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@smeared](https://forum.kirupa.com/u/smeared)\
**Post date:** [March 1, 2011, 11:34pm UTC](https://forum.kirupa.com/t/im-an-idiot-but-whats-the-right-better-way-to-do-this/319696/1 "2011-03-01T23:34:42Z")

</div>

i have to have different outcomes for all these things

```auto
if(n > 2000000){
				
				
			}else if(n > 1000000){
				
				
			}else if(n > 500000){
				
				
			}else if(n > 100000){
				
				
			}else if(n > 50000){
				
				
			}else if(n > 1000){
				
				
			}else if(n > 50){
				
				
			}else if(n > 30){
				
				
			}else if(n > 25){
				
				
			}else if(n > 10){
				
				
			}else if(n > 5){
				
				
			}else{
				
				
			}

```
