# Bank Section Exists
Grammar — Section section exists in bank bank
Flags —Native
|Function
Returns true if the specified Section exists in the chosen Bank.
# Arguments
bank
— Bankstring
— Section
Returns — bool
native bool BankSectionExists(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
campaigns/libertystory.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.stormmod — base.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());