Comparing return, true or false
I have a function, which checks a table for an entry, and returns the
results if one is found, however if no results are found, it returns
false.
Say for example when I use this function, and say that it returns false,
how can I add an error message for that return false? Or the quickest way
is to return "Sorry nothing found";
Thank you
No comments:
Post a Comment