Thread: If statements
View Single Post
Old 09-17-2002, 09:27 PM   #3 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
Yeah, thats the way I used to like to do it but I found that the other way is pretty useful instead of putting huge if/else's around your code, saved me heaps of time and confusing

Code:
if(cantContinue) error("whatever"); return;
rather than
Code:
if(!cantContinue)
{
  //do things
}
else
{
  //stop
  error("whatever");
}
__________________
-- bloomberg.
abc123 is offline   Reply With Quote