Question about return
First, let's post the code...
PHP Code:
I'm a bit confused so if you can't understand me go ahead. |
Re: Question about return
A return value is the value that a function returns to the calling code. Also, returning in the middle of a function ends execution of that function only (not the code that called the function).
Returning PLUGIN_HANDLED or PLUGIN_CONTINUE is only relevant to the function that is called by the hook/forward (i.e. those values are only interpreted in the way you think when handled by the hook/forward). If you use these values in any other functions, they will just be numbers being returned by the function. When you return a value in CheckSimon(), it will output it as it's result: PHP Code:
PHP Code:
|
Re: Question about return
Ok thanks. About the if statements... is it legal (for the plugin) to have an if statement without the else.. and multiple ifs so if the statement is false it just keeps going under the statement.
|
Re: Question about return
Quote:
|
| All times are GMT -4. The time now is 09:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.