Chapter 5 Customizing Generation with GTL


.break macro

This macro may be used to break out of .foreach loops.

.break

Example:

.set_value(_hasMain, false, new)
.foreach_item(Operations)
   .if (%Code% == main)
      .set_value(_hasMain, true)   
      .break
   .endif
.next
%_hasMain%

 


Copyright (C) 2008. Sybase Inc. All rights reserved.