Rule Modifiers

maxdepth [integer]

Rule Retirement.Sets the maximum recursive for the rule. The rule would not execute any actions after this limit has been reached.

notation is:

rule R1 md 1 {
box
}
rule R1 maxdepth 1 {
box
}

maxdepth [integer] > [rulename]

Rule Retirement with substitution. Sets the maximum recursive for the rule. After this limit has been reached [rulename] will be executed instead this rule.

notation is:

rule R1 md 1 > R2 {
box
R1
}
rule R1 maxdepth 1 > R2 {
box
R1
}

w / weight [float]

Ambiguous rules.If several rules are defined with the same name, a random definition is chosen according to the weight specified here. If no weight is specified, the default weight of 1 is used.

notation is:

rule R1 w 0.2 {
box
}
rule R1 weight 0.8 {
box
}