Execute_AddCurrency
Description
Adds a currency amount to the specified entity.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity that receives the currency. |
| S1 | Currency id (Currency.Id). |
| S2 | (Optional) Transaction type id (TransactionType.Id). |
| F1 | Amount to add (can be negative). |
Examples
| Description | BaseObject | Command | S1 | S2 | F1 |
|---|---|---|---|---|---|
| Adds 1000 Mew to self. | Self | AddCurrency | Mew | 1000 | |
| Spent 200 Mew on a purchase. | Target | AddCurrency | Mew | ExpenseBuy | -200 |
Back to Command FinderSearch and filter all 399 Script Execution documents