Delimit the end of a code section

Syntax


<opening statement>

   <statements contained within the scope of the section>

end

Description


The END statement is used with all CSL constructs which aggregate multiple statements or equations.  This include all section statements (MODEL, INITIAL, DYNAMIC, DERIVATIVE, DISCRETE, TERMINAL), as well as statements like IF/ELSE, FOR, and PROCEDURAL.  In all of these cases, the END statement delimits the end of statements/equations which belong to the group.  Note that in the case of IF/ELSE and FOR statements, this differs from earlier implementations of CSL.

Example


if(x <= 10.0)

   flag = true

end