Get()

View as Markdown

Definition

Returns the value of an AccountItem, such as BuyingPower, CashVal, etc.

Method Return Value

A double representing the value of the requested AccountItem.

Syntax

Get(AccountItem itemType, Cbi.Currency currency)

Parameters

ParameterDescription
itemTypeThe desired AccountItem to return
CurrencyThe account currency the value should be denoted (required parameter, but has no effect on returned value)

Examples

1// Evaluates to see if the account has more than $25000
2if (Account.Get(AccountItem.CashValue, Currency.UsDollar) > 25000)
3{
4 // Do something;
5}