functionaddEquation

Adds an equation to a class.

Information

The equation is added to the end of the last equation or initial equation section (depending on
isInitial
) in the class, or to a new section if no suitable section exists. The class must be able to contain equations, i.e. be a normal long class or class extends declaration.

Inputs

TypeNameDefaultDescription
TypeNameclassNameThe name of the class to add the equation to
StringeqThe equation given as a string
BooleanisInitialfalseWhether the equation should be added as an initial or normal equation

Outputs

TypeNameDefaultDescription
Booleansuccesstrue if the equation could be added, otherwise false