Use break or exit in UI action

Amit Pal1
Tera Contributor

If the else block is executed, the function publishitem() will not run. Can this be achieved ?

PFA snapshot as I am not able to copy paste the code.

16 REPLIES 16

Sharique Azim
Mega Sage

Hi Amit,


I can suggest a simplified structure..



So basically you have declare a global variable flg=''; and use it as a flag


in the client part set the flag to true in your if block. i.e flg= 'true';



Now, in the server part you just need to check with the logic:


if( flg== 'true ){


publishItems();


}


and so on.


Hi Sharique,



I have tried this already, didn't worked.



Regards,


Amit