Reference:11. Flow of Program in esProc

In esProc, you can use various judgment and loop statements just as in the normal program language to implement the program design of choice structure and repetitive structure.

Unlike JAVA and other high level languages, esProc use the straightforward format of code block to specify the working range of statement, instead of using the symbol like {} or reserved words (BEGIN/END) to enclose the working range.

In the program cellset, a certain range of indented cells is called as Code Block, and the starting cell is Master cell of the code block.


In esProc, the commonest statement of choice structure is the if/else judgment. There are 3 common styles of judgment statement: use if separately, ifelse…, and ifelse ifelse if……else. In esProc, you can use these structures according to your practical needs.

The judgment statement can be used in an individual line.


The judgment statement can be composed in multiple lines, and put the statement in the code block.





The most common loop statements in esProc is the for loop. If conditions in the for statement is met, then the statement in the code block will be executed repeatedly. The for loop statement can be used to implement the functionality of while statement and for statement of the normal program language.

If using the for statement individually, then it equals to for true. The code in the code block will be cycled non-conditionally. If using the break statements, then you can break out of the for loop, and stop the code block.


The for n statement can be used to specify the loops.


The for A statement enables you to cycle every member in the sequence A:



About datathinker

a technical consultant on Database performance optimization, Database storage expansion, Off-database computation. personal blog at: datakeywrod, website: raqsoft
This entry was posted in Reference and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s