Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
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.


Hosting Services by ipHouse