NAME
MultiplyBy — Make variable become a multiple of itself.
SYNOPSIS
MultiplyBy
VarName
Value
DESCRIPTION
Return Value
The new value for the variable.
Arguments
VarName
Name of variable to multiply.
Value
How much to multiply by.
More Info
MultiplyBy x 2
is equivalent to
x *= 2
in other languages.
For information regarding exceptions / errors, see
here
.
EXAMPLES
% set MyVar 2
2
%
MultiplyBy MyVar 2
4
% puts $MyVar
4
SEE ALSO
AddTo
,
DivideBy
,
SubtractFrom
,
expr
KEYWORDS
math