Post 10 made on Friday August 6, 2010 at 06:17 |
BluPhenix Long Time Member |
Joined: Posts: | December 2008 371 |
|
|
Ok now it's more clear.
Although I'm not really sure, but I think you don't need a return statement at the end of the function if the function doesn't actually return anything.
You can use it in a conditional script break thought:
function stoppable() { if (sky==="blue") { return; } else { doSomething; }
This will break the execution of the function if the sky is blue.
|
|
|