function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TinkuTinku 

Exit Syntax

What is the Exit syntax for Trigger?

 

REquirement is:

 

If(a==True)

Exit();  --> it should exit the trigger without executing next block of code.

 

else

{

code_block

}

EIE50EIE50

Are you talking about "break;" or anything more than that?

TinkuTinku

Any syntax which would say: exit the trigger if condition is true. else continue

EIE50EIE50

Then this should work,

 

if(i == 400)
              break;

else ......