There are some places where you may use either literal value or cascade expression. These places are:
There are 2 types of cascade expressions:
Basic information about cascade get:
Below you can see 3 basic usages of cascade expressions:
Everywhere you use Cascade get expression it redirects evaluation to given parameter and returns value from that parameter from specified output column.
Cascade get syntax
If, within P1 parameter in level of type T1 occurs cascade get to level type T2 in P2 parameter, then:
step 1: internally cascade get will return Holder type T2"
step 2: Holder is converted into Holder
Suppose we have 2 parameters defined as follows:
As you can see, par.p2 has output level value of type integer and output level factors defined as array of type number.
See what happens when you will get value from par.p2 with risk.code equal to A, B and C:
Result of getting value from par.p2 with risk.code=A in context:
Result of getting value from par.p2 with risk.code=B in context:
Result of getting value from par.p2 with risk.code=C in context:
TIP: When parameter P1 uses cascade get to parameter P2, then P2 is evaluated with the very same context P1 was.
Avoid cycles When using cascade gets it is forbidden to create evaluation cycle. In other words:
Evaluation cycle: P1 -> P2 -> … -> P1 is not allowed.