# 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
- [F] —
void
— Remove Bank Backup — ( BankBackupRemove ) - [F] —
int
— Get Bank Backup Id — ( BankBackupGetId ) - [F] —
int
— Get Bank Backup Latest Id — ( BankBackupGetLatestId ) - [F] —
void
— Restore Bank Backup — ( BankRestore ) - [F] —
void
— Backup Bank — ( BankBackup ) - [F] —
bool
— Bank Exists — ( BankExists ) - [F] —
text
— Bank Size As Text — ( BankSizeAsText ) - [F] —
string
— Bank Name — ( BankName ) - [F] —
bool
— Bank Key Exists — ( BankKeyExists ) - [F] —
text
— Bank Key Size As Text — ( BankKeySizeAsText ) - [F] —
string
— Bank Key Name — ( BankKeyName ) - [F] —
int
— Bank Key Count — ( BankKeyCount ) - [F] —
bool
— Bank Option — ( BankOptionGet ) - [F] —
int
— Bank Player — ( BankPlayer ) - [F] —
bool
— Bank Section Exists — ( BankSectionExists ) - [F] —
text
— Bank Section Size As Text — ( BankSectionSizeAsText ) - [F] —
string
— Bank Section Name — ( BankSectionName ) - [F] —
int
— Bank Section Count — ( BankSectionCount ) - [F] —
bool
— Bank Value Is Type — ( BankValueIsType ) - [F] —
void
— Delete Saved Campaign Banks — ( BankDeleteCampaignBanks ) - [F] —
bool
— Evaluate Bank Condition — ( BankConditionEvaluate ) - [F] —
void
— Set Bank Option — ( BankOptionSet ) - [F] —
void
— Create Bank Section — ( BankSectionCreate ) - [F] —
void
— Remove Bank — ( BankRemove ) - [F] —
void
— Remove Bank Key — ( BankKeyRemove ) - [F] —
void
— Remove Bank Section — ( BankSectionRemove ) - [F] —
bool
— Verify Bank — ( BankVerify )
# Examples
# campaigns/libertystory.sc2campaign
// L9845
BankSectionExists(BankLastCreated(), ("CampaignCompleted"))
// L12799
BankSectionExists(libCamp_gv_cP_Bank, ("CampaignCompleted"))
# campaigns/swarmstory.sc2campaign
// L13421
BankSectionExists(libSwaC_gv_zS_CampaignBank, lv_categorySection)
// L13421
BankSectionExists(libSwaC_gv_zS_CampaignBank, lv_unitSection)
# campaigns/voidstory.sc2campaign
// L7321
BankSectionExists(libVoiC_gv_pC_CampaignBank, lv_categorySection)
// L7321
BankSectionExists(libVoiC_gv_pC_CampaignBank, lv_unitSection)
# mods/heroesdata.stormmod
// L1961
BankSectionExists(libGame_gv_players[1].lv_bankData.lv_bank, "Debug Menu Options")