Page 1 of 1

Exit Server Code script execution

Posted: Sun Sep 13, 2015 3:36 pm
by Dongzhi Yang7528784

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----


Exit Server Code script execution

Posted: Mon Sep 14, 2015 10:54 am
by Serhii Kulibaba

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.


Exit Server Code script execution

Posted: Mon Sep 14, 2015 11:12 am
by Dongzhi Yang7528784

That make sense, thanks