AddNamedExpression()

Given an argument specifying the expression definition, adds a named expression to the data model.

Cannot be run after participants have started.

For more detailed information on the object created, see Expression.

ExpressionName : string

String indicating the display name of the named expression object. If not specified, defaults to the internal name assigned by System Coupling.

Must conform with Python's expression naming requirements.

ExpressionString : string

String defining the expression.

Must conform with Python's expression definition requirements.

Return Type

None

Example 13: Add a named expression


AddNamedExpression( 
	ExpressionName = 'Temp2Expr', 
	ExpressionString = 'temperature1*10')