Chapter 9 Generation Reference Guide (GTL)


break macro

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

break = .break

Example:

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

 


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