02-06-2008, 05:46 PM
|
#3 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Posts: 166
Thanks: 0
|
I return booleans if the function is suppose to perform an action but isn't required to return data. True and false lets me know if the function was successful or not. It also allows me to not put error handling within the function so that other people can use it easily or I can do whatever I want with the error outside of the function.
__________________
Eric
|
|
|
|