UPDATE

From iMath
Jump to navigation Jump to search

Syntax

UPDATE string


Implemented in iMath since version 2.3.0.

Explanation

Update a formula (Math object) that was created earlier in the document. The name of the Math object must be given as it appears in the context menu "Properties" or in the Navigator. The Math object will typically be an EXDEF statement. Any statements containing a label will cause an error, for example it is not allowed to EQDEF a variable twice.


Example

Assume that somewhere in the document we have defined

 @result@ EQDEF x = a + b

and in the Math object "Objekt1" we write

 TEXT =
 EXDEF VAL(x)

Later in the document, the values of a and b are known:

 @a@ EQDEF a = 3
 @b@ EQDEF b = 4

Using UPDATE, we can now update to show the correct value of x

 UPDATE "Objekt1"

See also