# Value From Data Table (Boolean)

Grammarname from the scope|Global/Local data table
FlagsNative | Function

Returns a boolean value from a data table. Data tables allow you to store and recall values using a string identifier.

# Arguments

  • bool [ preset::DataScope ] — Scope
  • string — Name

Returns — bool

native bool DataTableGetBool(bool global, string name);

Category: Data Table / Load Value

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3738
DataTableGetBool(true, (SoundLinkId(lp_soundLink)))
// L3738
DataTableGetBool(true, (SoundLinkId(lp_soundLink)))

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L5626
DataTableGetBool(false, ((lv_indexMission) + "_Available"))
// L10074
DataTableGetBool(false, (lv_indexCategory))
// L13913
DataTableGetBool(false, ((lv_indexMission) + "_Available"))

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L4796
DataTableGetBool(false, (lv_indexCategory))
// L5266
DataTableGetBool(false, (lv_indexCategory))

# mods/heroesdata.stormmod

GameLib.galaxy

// L2605
DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_PresentAsRatio_C))
// L2611
DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_GatedByBase_C))
// L2662
DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardUpdate_C, libGame_gv_eventParam_MapSpecificAwardUpdate_IsAdd_C))
// L3350
DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_CapturePointChangesOwner_C, libGame_gv_eventParam_CapturePointChangesOwner_HasMercLordTalent_C))
// L3625
DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_HeroAIEndingCampAttack_C, libGame_gv_eventParam_HeroAIEndingCampAttack_Success_C))
// L4110
DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_RequestCustomRespawn_C, libGame_gv_eventParam_RequestCustomRespawn_RespawnMounted_C))
// L4266
DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_CheckUnitForAbilityRedirect_C, libGame_gv_eventParam_CheckUnitForAbilityRedirect_Boolean_C))
// L5121
DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_TalentPanelVisibilityChanged_C, libGame_gv_eventParam_TalentPanelVisibilityChanged_Visibility_C))

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L1447
DataTableGetBool(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_MountCategoryIndex_" + IntToString(lv_itCategory) + "_GrantedBySkin"))

# mods/missionpacks/campaigncommon.sc2mod

LibComC.galaxy

// L2217
DataTableGetBool(false, (lv_indexCategory))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L2428
DataTableGetBool(true, libCOMI_gf_CM_CoopAI_AttackForce_UseTransportName(lp_waypointIndex))
// L19756
DataTableGetBool(true, ("CM_MTO_SkinApplied_" + (lv_skin) + "_" + IntToString(lv_player)))

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L3886
DataTableGetBool(true, libCOUI_gf_CU_UnitProgressBar_Data2(lp_unit))
// L3899
DataTableGetBool(true, libCOUI_gf_CU_UnitProgressBar_IsWideBarString(lp_unit))

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L5607
DataTableGetBool(false, (lv_indexCategory))