Livecode Wiki
Advertisement

Syntax

add Value to <Target>

You need: com.livecode.arithmetic

Adds Value to Target.

Parameters

  • Target: An expression that evaluates to a numeric container.


Examples

   use com.livecode.arithmetic
   variable tVar as Number
   put 2 into tVar
   add 10 to tVar -- tVar contains 12


Adds the number Value to Target.

Note: It is a syntax error if Target does not evaluate to a variable.

Advertisement