# Bank Section Exists

Grammar — Section section exists in bank bank
FlagsNative | Function

Returns true if the specified Section exists in the chosen Bank.

# Arguments

  • bank — Bank
  • string — Section

Returns — bool

native bool BankSectionExists(bank b, string section);

Category: Bank / Utility

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9845


    libCamp_gv_cP_Bank = BankLastCreated();
    if ((BankSectionExists(BankLastCreated(), ("CampaignCompleted")) == true)) {
        libCamp_gv_cPX_CampaignCompleted = BankValueGetAsFlag(BankLastCreated(), ("CampaignCompleted"), "1");
    }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:12799

    BankReload(libCamp_gv_cP_Bank);
    BankWait(libCamp_gv_cP_Bank);
    if ((BankSectionExists(libCamp_gv_cP_Bank, ("CampaignCompleted")) == true)) {
        libCamp_gv_cPX_CampaignCompleted = BankValueGetAsFlag(libCamp_gv_cP_Bank, ("CampaignCompleted"), "1");
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13421

        lv_categorySection = libSwaC_gf_ZS_BankSectionName(null, "ArmyCategory");
        lv_unitSection = libSwaC_gf_ZS_BankSectionName(lp_nextMission, "ArmyUnit");
        if (((lp_nextMission == "ZLab1") || ((BankSectionExists(libSwaC_gv_zS_CampaignBank, lv_categorySection) == true) && (BankSectionExists(libSwaC_gv_zS_CampaignBank, lv_unitSection) == true)))) {
            autoDE125D20_ae = CatalogEntryCount(c_gameCatalogArmyCategory);
            autoDE125D20_ai = 1;

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13421

        lv_categorySection = libSwaC_gf_ZS_BankSectionName(null, "ArmyCategory");
        lv_unitSection = libSwaC_gf_ZS_BankSectionName(lp_nextMission, "ArmyUnit");
        if (((lp_nextMission == "ZLab1") || ((BankSectionExists(libSwaC_gv_zS_CampaignBank, lv_categorySection) == true) && (BankSectionExists(libSwaC_gv_zS_CampaignBank, lv_unitSection) == true)))) {
            autoDE125D20_ae = CatalogEntryCount(c_gameCatalogArmyCategory);
            autoDE125D20_ai = 1;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7321

        lv_categorySection = libVoiC_gf_PC_BankSectionName(null, "ArmyCategory");
        lv_unitSection = libVoiC_gf_PC_BankSectionName(lp_nextMission, "ArmyUnit");
        if (((lp_nextMission == "PAiur01") || ((BankSectionExists(libVoiC_gv_pC_CampaignBank, lv_categorySection) == true) && (BankSectionExists(libVoiC_gv_pC_CampaignBank, lv_unitSection) == true)))) {
            autoCDD6D710_ae = CatalogEntryCount(c_gameCatalogArmyCategory);
            autoCDD6D710_ai = 1;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7321

        lv_categorySection = libVoiC_gf_PC_BankSectionName(null, "ArmyCategory");
        lv_unitSection = libVoiC_gf_PC_BankSectionName(lp_nextMission, "ArmyUnit");
        if (((lp_nextMission == "PAiur01") || ((BankSectionExists(libVoiC_gv_pC_CampaignBank, lv_categorySection) == true) && (BankSectionExists(libVoiC_gv_pC_CampaignBank, lv_unitSection) == true)))) {
            autoCDD6D710_ae = CatalogEntryCount(c_gameCatalogArmyCategory);
            autoCDD6D710_ai = 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:1961


    // Implementation
    if ((BankSectionExists(libGame_gv_players[1].lv_bankData.lv_bank, "Debug Menu Options") == true)) {
        if ((libCore_gf_LoadBankValueIfExistsAsBoolean(libUIUI_gv_uIDebugPanelShowAllCombatText, libGame_gv_players[1].lv_bankData.lv_bank, "ShowAllTextBoolean", "Debug Menu Options") == true)) {
            libNtve_gf_SetDialogItemChecked(libUIUI_gv_uIDebugPanel.lv_enableAllFloatingCombatTextCheckbox, true, PlayerGroupAll());