Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

Exit Server Code script execution

HI Team,

Is there a way to stop the execution of a server code script? this is to manage may program flow.

e.g.
if(condition){
}else{
response.error(message);
stop execution;
}
---other code----

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Exit Server Code script execution

Hello Dongzhi,

You can use function in your server code and use codereturn;/code for exit from it. So you have to put full JS into that function.

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

Exit Server Code script execution

That make sense, thanks

Return to “Issues”