# Bank Key Exists

Grammar — Bank bank has key in section section
FlagsNative | Function

Returns true if the chosen Bank has an entry at the specified Key of the specified Section.

# Arguments

  • bank — Bank
  • string — Section
  • string — Key

Returns — bool

native bool BankKeyExists(
	bank b,
	string section,
	string key,
);

Category: Bank / Utility

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L8713
BankKeyExists(lp_bank, lp_section, lp_key)
// L8724
BankKeyExists(lp_bank, lp_section, lp_key)
// L8735
BankKeyExists(lp_bank, lp_section, lp_key)
// L8981
BankKeyExists(lp_sourceBank, lv__SectionName, IntToString(lv_index))

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L13990
BankKeyExists(lp_bank, lv__SectionName, IntToString((lp_missionA)))
// L13996
BankKeyExists(lp_bank, lv__SectionName, IntToString((lp_missionB)))
// L14029
BankKeyExists(lp_bank, lp_section, lp_key)
// L14040
BankKeyExists(lp_bank, lp_section, lp_key)
// L14051
BankKeyExists(lp_bank, lp_section, lp_key)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L7889
BankKeyExists(lp_bank, lv__SectionName, IntToString((lp_missionA)))
// L7895
BankKeyExists(lp_bank, lv__SectionName, IntToString((lp_missionB)))
// L7934
BankKeyExists(lp_bank, lp_section, lp_key)
// L7945
BankKeyExists(lp_bank, lp_section, lp_key)
// L7956
BankKeyExists(lp_bank, lp_section, lp_key)

# mods/heroesdata.stormmod

GameLib.galaxy

// L12647
BankKeyExists(libGame_gv_players[lv_itPlayer].lv_bankData.lv_bank, "MapPlayCounts", libCore_gv_mAPMapStringID)

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L2970
BankKeyExists(lp_bank, lp_section, lp_key)
// L2981
BankKeyExists(lp_bank, lp_section, lp_key)
// L2992
BankKeyExists(lp_bank, lp_section, lp_key)
// L3003
BankKeyExists(lp_bank, lp_section, lp_key)

# mods/heroesdata.stormmod

StartingExperienceLib.galaxy

// L2471
BankKeyExists(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey)
// L2481
BankKeyExists(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey)
// L2492
BankKeyExists(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey)
// L2501
BankKeyExists(libGame_gv_players[libStEx_gv_sE_Player].lv_bankData.lv_bank, libStEx_gv_sE_TrainingModeBankSection_C, lv_bankKey)

# mods/missionpacks/campaigncommon.sc2mod

LibComC.galaxy

// L3848
BankKeyExists(lp_bank, lp_section, lp_key)
// L3858
BankKeyExists(lp_bank, lp_section, lp_key)
// L3868
BankKeyExists(lp_bank, lp_section, lp_key)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L4805
BankKeyExists(lp_bank, lp_section, lp_key)
// L4816
BankKeyExists(lp_bank, lp_section, lp_key)
// L4827
BankKeyExists(lp_bank, lp_section, lp_key)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L6744
BankKeyExists(lp_bank, lp_section, lp_key)
// L6755
BankKeyExists(lp_bank, lp_section, lp_key)
// L6766
BankKeyExists(lp_bank, lp_section, lp_key)

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L789
BankKeyExists(libWCdr_gv_w3CBank[lp_player], lp_section, lp_key)