Thats how I used to code if statements. I have no idea why I changed.
I also recommend using the && (and) operator in your if() statements. You have 3 if()'s checking a different thing but returning the same value if each one is executed.
__________________
[ Paid Requests ] DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT