Neat and clear codes
- esProc cells are of the natural delimiters and indentions
- With the cell as natural delimiter, the alignment of constants is effortless
- With the cell as natural indention, the loop/branch statements have got the natural and clear scope
- The cell-style code enables a more clear and easy-to-read multi-nest, you will never get caught up in an awkward situation of messy levels of nesting (such as the typical bracket pitfalls of }}}} in Java)
A | B | C | D | ||
1 | Mike | Male | 20 | 3000 | |
2 | Lucy | Female | 21 | 3200 | |
3 | Jake | Male | 29 | 4000 | |
4 | David | Male | 24 | 3400 | |
5 | =create(Name,Gender,Age,Salary).record([A1:D4]) | ||||
6 | =0 | =0 | |||
7 |
for A5
|
The loop body is marked with red rectangle | |||
8 |
if A7.Gender==”Male” && A7.Age>25
|
The statements marked with green rectangle is executed when the condition of the if statement is true | |||
9 | >A6=A6+A7.Salary | Total salary of male employees above 25 years old | |||
10 |
else
|
The statements marked with blue rectangle are executed when the condition of the if statement is not true | |||
11 | >B6=B6+1 | Total salary of other employees |