Decrements the passed integer variable by one and returns the decremented value.
Accordingly you may only pass script variables of type integer which are allowed
to modified (i.e. they may not be declared as const
).
dec(??variable??)
Argument Name | Data Type | Description |
---|---|---|
??variable?? |
Integer Variable | The integer variable to be decremented by one. [required] |
Description | Data Type |
---|---|
Value of the passed variable after the decrementation. | Integer Number |
on init
declare $i
message("inc(" & $i & ") = " & inc($i))
message("inc(" & $i & ") = " & inc($i))
message("inc(" & $i & ") = " & inc($i))
message("dec(" & $i & ") = " & dec($i))
message("dec(" & $i & ") = " & dec($i))
message("dec(" & $i & ") = " & dec($i))
end on
inc()
Since LinuxSampler 2.0.0.svn15.