Why is there braces around the return in the if-side, but not braces in the else-side?Code:if (accident== "yes" || accident== "Yes"){ return 1; } else return 0;
--
Mats
Why is there braces around the return in the if-side, but not braces in the else-side?Code:if (accident== "yes" || accident== "Yes"){ return 1; } else return 0;
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd