CSP and HTML Tag Reference
<CSP:QUIT>
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Quits the containing <CSP:WHILE> or <CSP:LOOP> block.
Synopsis
<CSP:QUIT>
Attributes
General Attributes
Attribute Description Value
none    
Description
The <CSP:QUIT> quits the containing CSP:WHILE or CSP:LOOP block. For example:
  <CSP:WHILE COUNTER=x CONDITION="(x<10)">
    <CSP:IF CONDITION="(x>3)">
    <CSP:QUIT>
    </CSP:IF>
    Item #(x)#
  </CSP:WHILE>
Will produce the following result:
  Item 1
  Item 2
  Item 3