functionaddEquation
Adds an equation to a class.
Information
The equation is added to the end of the last equation or initial equation section (depending onisInitial) 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
| Type | Name | Default | Description |
|---|---|---|---|
| TypeName | className | The name of the class to add the equation to | |
| String | eq | The equation given as a string | |
| Boolean | isInitial | false | Whether the equation should be added as an initial or normal equation |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | success | true if the equation could be added, otherwise false |