This functionality is only available for certain module packages.

You are here: Reference > SCRIPTING > General methods > Change parameter result to literal formula

Change parameter result to literal formula

If the result of a parameter should be fixed, it can be written to the parameter as a literal formula. The LiteralFormulaBuilder class performs this for all base types (Integer, Double, Boolean, String, Pair, Map, OrderedMap, BidiMap, List, Bag, Set) and for mechatronic components and classes as well.

The least are created as pattern of the following forms:

if existsRef('p.b.c.d'') then ref('a.b.c.d') else default endif

and

if existsType('b.c.d.e') then type('b.c.d.e') else default endif