XPAC Reference Guide

Shading expression examples

Shading expression examples

Previous topic Next topic  

Shading expression examples

Previous topic Next topic  

Note

The row codes used in these examples may not necessarily correspond with fields in your XPAC project. You will need to use row codes as setup in your Main database.

Expressions

To shade the Total Block Tonnage:

M(mWst_Ton)+M(mOre_Ton)

To shade the Level 3 Position in Level Number:

GetApil(3)

To shade the First Child of Parent Record (Returns -1 if true):

IsFirst()

Conditional expressions

To shade blocks one colour if they are endwall blocks, and another colour if not:

IIf(M(mBlk_Location)="Endwall", 1, 0)

To shade blocks that have an iron grade greater that 60%:

IIf(M(mOre_FeGrde)>60, 1, 0)