First page Back Continue Last page Overview Graphics
Computed Column Control/Blocks
May enclose blocks of code in {}
Blocks following if/else MUST have {}
string xResult1,xResult2;
int xAge;
xResult1 = SCalcAge(vId);
xAge = (int) xResult1;
if (xAge > 40) {
xResult2 = 'OLD';
} else {
xResult2 = 'YOUNG';
}
return xResult2;