   Function Question
  Is there a way to "break out" of a function after it performs a certian task? Like ...  IF(PC == Gay) {fix it up; "break out";)  [edited by - DarkWhoppy on August 2, 2003 12:02:28 PM]
  yes if you are in a function use return; or return 0; to end the function:void func(){ if(nodisplay) return;//do gfx stuff}in loops u can use break (leaf loop) or continue(skip remaining part in loop once)T2k ;  what language are you using? it looks like c/c++return; ;  C++ ;  Ahh! Now Sleep("1000"); won''t work...I get an error... ;quote:Original post by DarkWhoppy  Ahh! Now Sleep("1000"); won''t work...I get an error...   Try sleep(1000), because sleep is case-sensitive, and plus the sleep value is a number, not a string, so you don''t need quotes.;  Thanks 