# Bank Key Exists
Grammar — Bank bank has key in section section
Flags —Native
|Function
Returns true if the chosen Bank has an entry at the specified Key of the specified Section.
# Arguments
bank
— Bankstring
— Sectionstring
— Key
Returns — bool
native bool BankKeyExists(
bank b,
string section,
string key,
);
# 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:8713
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8724
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8735
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8981
lv_index = 1;
for ( ; ( (auto62551DF2_ai >= 0 && lv_index <= auto62551DF2_ae) || (auto62551DF2_ai < 0 && lv_index >= auto62551DF2_ae) ) ; lv_index += auto62551DF2_ai ) {
if ((BankKeyExists(lp_sourceBank, lv__SectionName, IntToString(lv_index)) == true)) {
libCamp_gf_TS_HelpUnitsPanel_AddEnabledUnitType(UnitTypeFromString(libCamp_gf_TS_LoadTransitionVarString(lp_sourceBank, lv__SectionName, IntToString(lv_index), "")));
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13990
// Implementation
if ((BankKeyExists(lp_bank, lv__SectionName, IntToString((lp_missionA))) == true)) {
lv_aAge = BankValueGetAsInt(BankLastCreated(), lv__SectionName, IntToString((lp_missionA)));
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13996
lv_aAge = 0;
}
if ((BankKeyExists(lp_bank, lv__SectionName, IntToString((lp_missionB))) == true)) {
lv_bAge = BankValueGetAsInt(BankLastCreated(), lv__SectionName, IntToString((lp_missionB)));
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14029
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14040
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14051
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7889
// Implementation
if ((BankKeyExists(lp_bank, lv__SectionName, IntToString((lp_missionA))) == true)) {
lv_aAge = BankValueGetAsInt(BankLastCreated(), lv__SectionName, IntToString((lp_missionA)));
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7895
lv_aAge = 0;
}
if ((BankKeyExists(lp_bank, lv__SectionName, IntToString((lp_missionB))) == true)) {
lv_bAge = BankValueGetAsInt(BankLastCreated(), lv__SectionName, IntToString((lp_missionB)));
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7934
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7945
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7956
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12647
BankLoad("PlayerSettings", lv_itPlayer);
libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank = BankLastCreated();
if ((libCore_gv_mAPMapStringID != "") && (BankKeyExists(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "MapPlayCounts", libCore_gv_mAPMapStringID) == true)) {
libGame_gv_players[lv_itPlayer].lv_bankData.lv_mapPlayCount = BankValueGetAsInt(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "MapPlayCounts", libCore_gv_mAPMapStringID);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2970
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == true)) {
return BankValueGetAsFlag(lp_bank, lp_section, lp_key);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2981
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == true)) {
return BankValueGetAsInt(lp_bank, lp_section, lp_key);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2992
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == true)) {
return BankValueGetAsFixed(lp_bank, lp_section, lp_key);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3003
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == true)) {
return BankValueGetAsString(lp_bank, lp_section, lp_key);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:2471
lv_bankKey = libStEx_gv_sE_TrainingModeBankkey_RefCard_C;
if ((BankKeyExists(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey) == true)) {
libStEx_gv_sE_TrainingModeRefCardTimes = BankValueGetAsInt(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:2481
if ((libStEx_gv_sE_Player > 0)) {
lv_bankKey = libStEx_gv_sE_TrainingModeBankkey_OnOff_C;
if ((BankKeyExists(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey) == true)) {
libStEx_gv_sE_TrainingMode = BankValueGetAsFlag(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:2492
for ( ; ( (auto6F0AEFF1_ai >= 0 && lv_itNewUserTip <= auto6F0AEFF1_ae) || (auto6F0AEFF1_ai < 0 && lv_itNewUserTip >= auto6F0AEFF1_ae) ) ; lv_itNewUserTip += auto6F0AEFF1_ai ) {
lv_bankKey = (libStEx_gv_sE_TrainingModeBankkey_Tip_C + IntToString((libStEx_gv_sE_TrainingModeTips[lv_itNewUserTip].lv_iD)));
if ((BankKeyExists(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey) == true)) {
libStEx_gv_sE_TrainingModeTips[lv_itNewUserTip].lv_doneTimes = BankValueGetAsInt(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:2501
}
lv_bankKey = libStEx_gv_sE_TrainingModeBankkey_Talent_C;
if ((BankKeyExists(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey) == true)) {
libStEx_gv_sE_TrainingModeTalentTaught = BankValueGetAsFlag(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey);
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3848
int libComC_gf_CC_LoadTransitionVarInteger (bank lp_bank, string lp_section, string lp_key, int lp_default) {
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3858
bool libComC_gf_CC_LoadTransitionVarBoolean (bank lp_bank, string lp_section, string lp_key, bool lp_default) {
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3868
string libComC_gf_CC_LoadTransitionVarString (bank lp_bank, string lp_section, string lp_key, string lp_default) {
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:4805
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:4816
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:4827
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6744
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6755
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6766
// Automatic Variable Declarations
// Implementation
if ((BankKeyExists(lp_bank, lp_section, lp_key) == false)) {
return lp_default;
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:789
// Automatic Variable Declarations
// Implementation
return BankKeyExists(libWCdr_gv_w3CBank[lp_player], lp_section, lp_key);
}