<< Click to Display Table of Contents >> Navigation: 3. Script Language > Mathematical and algorithmic operations > Mathematical and algorithmic operations |
MiniRobotLanguage (MRL)
VDC. Command
Variable DeCrement
Intention
Decrement the Value inside any specified Global or Local Variable or Stack.
"Decrement" means that the number is decreased by 1 or if specified, the number in P2.
Syntax
VDC.P1[|P2]
Parameter Explanation
P1 - Variable containing any NUM
P2 - optional, value that is subtracted from Variable, default is 1.
Example
'*****************************************************
' EXAMPLE 1:
'*****************************************************
VAR.$$NUM=50
VDC.$$NUM
VDC.$$NUM|15
END.
Remarks
-
Limitations:
-
See also:
• CAL. - mathematical CALculation
• VAR. - Variable Set Value/Clear