Return function?
Posted: Thu Mar 10, 2022 3:59 pm
Is there a return statement that allows me to exit an update code function?
For example:
------------
Code execution enters Update Block:
if( testMode ) {
x = whatever;
return;
}
// perform long calculation for X after this point
-----------
So that everything doesn't have to be wrapped in if-else statements...
For example:
------------
Code execution enters Update Block:
if( testMode ) {
x = whatever;
return;
}
// perform long calculation for X after this point
-----------
So that everything doesn't have to be wrapped in if-else statements...