FutureProg functions
setvendingbalance
setvendingbalance overload 1
Boolean setvendingbalance(Item item, Number balance)
Available in
- computer function
- computer program
- standard futureprog
Sets the current balance stored in a vending-machine item component. Returns false if the item is null, is not a vending machine, or the balance is not numeric.
| Parameter | Type | Description |
|---|---|---|
item |
Item |
The vending machine item whose stored balance should be changed. |
balance |
Number |
The new numeric balance to store on the machine. |