# Bank Key Count

Grammar — Count of keys in section section of bank bank
FlagsNative | Function

Returns the number of keys in the specified Section of the chosen Bank.

# Arguments

  • bank — Bank
  • string — Section

Returns — int

native int BankKeyCount(bank b, string section);

Category: Bank / Utility

# Examples

mods/warcoop/warcoopdata.sc2modbase.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);
    }