Back Previous Next


Linguist basic package - add

Syntax:

   add {value} to {variable} [giving {variable}]
   add {value} to {buffer}
   add {value} to {vector}

Keyword handler:

   net.eclecity.linguist.basic.keyword.BasicKAdd.class

Runtime handler(s):

   net.eclecity.linguist.basic.handler.BasicHAdd.class
   net.eclecity.linguist.basic.handler.BasicHAppend.class

Function:

Adds a numeric value to a variable, optionally placing the result in a second variable and leaving the first unchanged. The second form adds a value to a buffer, behaving exactly the same as append. The third form add a value to a vector.

Example(s):

   add 5 to N
   add the length of Word to Count giving NewCount
   add " and more" to MyTextBuffer


Back Previous Next ement.html">decrement