Temporary Variables

Temporary variables can be declared  by using the let keyword. A temporary variable does not persist as a parameter after the rule execution is finished.

/*Rule created by CRE 08/23/99*/
let x = 5 mm 
if PartBody\Hole.1\Diameter > x
{
PartBody\Hole.1\Activity = false
}       

For non digital values, the type has to be indicated:

let S(Surface)
S= split (...,...)

Temporary variables should be declared at the beginning of the rule, before any conditional instruction is specified.

let S1(Surface)
let S2(Surface)
let S3(Surface)

S1 = Split ...
S2 = ...
S3 = ...

 

Back Up Next