# GetAccountByIndex Method The GetAccountByIndex method returns an account by index. Syntax
    [obj=] SiteCafe.Server.Accounts.GetAccountByIndex(index)
Parameters
index | Long value that specifies the account index.
Return Value Returns an Account object representing the specified account. Remarks None. Examples The following example displays the current amount of the first account.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    account = SiteCafe.Server.Accounts.GetAccountByIndex(1);
    alert(account.CurAmount);
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top