- Joined
- Feb 11, 2011
- Messages
- 1,860
Hi guys,
I have seen many people make functions return a boolean for no reason. I seem to remember something about it being better, but I can't remember why. Could someone explain why it is preferred to return a boolean over return nothing. For example:
Thanks,
Mr_Bean
I have seen many people make functions return a boolean for no reason. I seem to remember something about it being better, but I can't remember why. Could someone explain why it is preferred to return a boolean over return nothing. For example:
JASS:
private function KillAll takes nothing returns boolean
for enumU in enumG
call KillUnit(enumU)
endfor
return true
endfunction
Mr_Bean