Values
CSL supports the following types of values
-
Arithmetic: can be designated by expressions (see below), numeric literals such as
50or21.75, or identifiers such asroughMassormachine.cycleTime. -
String: can be designated by expressions (see below), string literals, such as
‘Material Cost’, or identifiers such asop.name. -
Boolean: can be designated by expressions (see below), the boolean literals
trueandfalse, or identifiers such asop.isManualOverride. -
Object: can be designated by expressions (see below) or identifiers such as
part,gcd, ormachine. Each object has one or more named fields which you can access using dot notation, as inpart.volumeorpart.material. The value of a field can be any type of CSL-supported value, including a collection or other object. -
Collection: can be designated by expressions (see below) or identifiers such as
childOpsortubLaserCutting. Note that a cost model’s lookup tables are collections; each collection element is a table row, and each collection-element field corresponds to a table column. You can retrieve a collection’s elements by using query or foreach expressions.