# Bank Key Count
Grammar — Count of keys in section section of bank bank
Flags —Native
|Function
Returns the number of keys in the specified Section of the chosen Bank.
# Arguments
bank
— Bankstring
— Section
Returns — int
native int BankKeyCount(bank b, string section);
# Related
Category: Bank / Utility
- Remove Bank Backup —
void
— BankBackupRemove - Get Bank Backup Id —
int
— BankBackupGetId - Get Bank Backup Latest Id —
int
— BankBackupGetLatestId - Restore Bank Backup —
void
— BankRestore - Backup Bank —
void
— BankBackup - Bank Exists —
bool
— BankExists - Bank Size As Text —
text
— BankSizeAsText - Bank Name —
string
— BankName - Bank Key Exists —
bool
— BankKeyExists - Bank Key Size As Text —
text
— BankKeySizeAsText - Bank Key Name —
string
— BankKeyName - Bank Key Count —
int
— BankKeyCount - Bank Option —
bool
— BankOptionGet - Bank Player —
int
— BankPlayer - Bank Section Exists —
bool
— BankSectionExists - Bank Section Size As Text —
text
— BankSectionSizeAsText - Bank Section Name —
string
— BankSectionName - Bank Section Count —
int
— BankSectionCount - Bank Value Is Type —
bool
— BankValueIsType - Delete Saved Campaign Banks —
void
— BankDeleteCampaignBanks - Evaluate Bank Condition —
bool
— BankConditionEvaluate - Set Bank Option —
void
— BankOptionSet - Create Bank Section —
void
— BankSectionCreate - Remove Bank —
void
— BankRemove - Remove Bank Key —
void
— BankKeyRemove - Remove Bank Section —
void
— BankSectionRemove - Verify Bank —
bool
— BankVerify
# Examples
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:818
// Implementation
BankKeyRemove(libWCdr_gv_w3CBank[lp_player], lp_section, lp_key);
if ((BankKeyCount(libWCdr_gv_w3CBank[lp_player], lp_section) == 0)) {
BankSectionRemove(libWCdr_gv_w3CBank[lp_player], lp_section);
}