ContAddCont

Creates a new continuous variable with values contVar1[i]+contVar2[i], returns a reference to the new variable.

Syntax

ContAddCont(contVar1, contVar2)

Parameters

Parameter

Type

Description

contVar1

variableReference

Reference to the continuous variable.

contVar2

variableReference

Reference to the continuous variable.

Return

Creates a new continuous variable with values contVar1[i]+contVar2[i], returns a reference to the new variable.

Examples

Python

import nex
doc = nex.GetActiveDocument()
theSumOfFP1andFP2 = nex.ContAddCont(doc["FP01"], doc["FP02"])

# you can also use arithmetic operations on continuous variables:
doc["average of FP01 and FP02"] = ( doc["FP01"] + doc["FP01"] ) / 2

NexScript

doc = GetActiveDocument()
theSumOfFP1andFP2 = ContAddCont(doc["FP01"], doc["FP02"])