FutureProg functions

setvendingbalance

Items · computer function, computer program, standard futureprog

Boolean setvendingbalance(Item item, Number balance)
Contexts: 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.
item: The vending machine item whose stored balance should be changed.
balance: The new numeric balance to store on the machine.

← Back to FutureProg functions