DecLocalVar

From Compost Wiki
Revision as of 19:42, 8 July 2014 by Jeffm (talk | contribs) (Created page with "{{Description|description=This command will decrement a named local variable by 1.0. It takes a parameter that specifies the name of the variable to increment. The name can be...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This command will decrement a named local variable by 1.0. It takes a parameter that specifies the name of the variable to increment. The name can be any string, including letters, numbers, spaces, or special characters. This variable will be defined in the local scope. Variables set in the local scope are only available in the prog sub that they are set in and any data in them is removed when the prog sub ends.

Usage: DecLocalVar('My Var 1')

DecLocalVar('22')


Notes

This command makes counters a little easier.


Stats

ID 896
Type Command
Class All Machines
Scope Global
Min Version 11.0