# 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.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3738

        DataTableSetBool(true, (SoundLinkId(lp_soundLink)), true);
        while (true) {
            if ((DataTableGetBool(true, (SoundLinkId(lp_soundLink))) == false)) {
                return ;
            }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:3738

        DataTableSetBool(true, (SoundLinkId(lp_soundLink)), true);
        while (true) {
            if ((DataTableGetBool(true, (SoundLinkId(lp_soundLink))) == false)) {
                return ;
            }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:5626

        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoB217ED36_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Upgrade") {
            if ((DataTableGetBool(false, ((lv_indexMission) + "_Available")) == false)) {
                libSwaC_gf_ZS_MarkMissionAsStatus(lv_indexMission, libSwaC_ge_MissionStatus_Locked);
            }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:10074

        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto39314A95_ai);
        if ((libSwaC_gf_ZS_StoryArmyCategoryIsMorph(lv_indexCategory) == false)) {
            if ((DataTableGetBool(false, (lv_indexCategory)) == true)) {
                libSwaC_gf_ZS_SetArmyCategoryState(lv_indexCategory, c_armyCategoryStateUnlocked);
            }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13913

        lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto7E37FE5B_ai);
        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Upgrade") {
            if ((DataTableGetBool(false, ((lv_indexMission) + "_Available")) == false)) {
                libSwaC_gf_ZS_MarkMissionAsStatus(lv_indexMission, libSwaC_ge_MissionStatus_Locked);
            }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:4796

    while (autoC8E789DF_ai <= autoC8E789DF_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoC8E789DF_ai);
        if ((DataTableGetBool(false, (lv_indexCategory)) == true)) {
            libVoiC_gf_PC_SetArmyCategoryState(lv_indexCategory, c_armyCategoryStateUnlocked);
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:5266

            while (auto2852A76A_ai <= auto2852A76A_ae) {
                lv_indexArmyUnit = CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray["+IntToString(auto2852A76A_ai-1)+"]", 1);
                if ((libVoiC_gf_PC_ArmyUnitStartsLocked(lv_indexArmyUnit) == true) && ((libVoiC_gf_PC_ArmyCategoryState(lv_indexCategory) == c_armyCategoryStateLocked) || ((libVoiC_gf_PC_ArmyUnitRequiredMission(lv_indexArmyUnit) == null) && (DataTableGetBool(false, (lv_indexCategory)) == false)) || ((libVoiC_gf_PC_ArmyUnitRequiredMission(lv_indexArmyUnit) != null) && (libVoiC_gf_MissionStatusCheck(libVoiC_gf_PC_ArmyUnitRequiredMission(lv_indexArmyUnit), libVoiC_ge_MissionStatus_Completed) == false)))) {
                    libVoiC_gf_PC_SetArmyUnitState(lv_indexArmyUnit, c_armyUnitStateLocked);
                }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2605

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_PresentAsRatio_C));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2611

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_GatedByBase_C));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2662

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardUpdate_C, libGame_gv_eventParam_MapSpecificAwardUpdate_IsAdd_C));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:3350

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_CapturePointChangesOwner_C, libGame_gv_eventParam_CapturePointChangesOwner_HasMercLordTalent_C));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:3625

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_HeroAIEndingCampAttack_C, libGame_gv_eventParam_HeroAIEndingCampAttack_Success_C));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:4110

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_RequestCustomRespawn_C, libGame_gv_eventParam_RequestCustomRespawn_RespawnMounted_C));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:4266

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_CheckUnitForAbilityRedirect_C, libGame_gv_eventParam_CheckUnitForAbilityRedirect_Boolean_C));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:5121

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_TalentPanelVisibilityChanged_C, libGame_gv_eventParam_TalentPanelVisibilityChanged_Visibility_C));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:1447

    lv_itCategory = 1;
    for ( ; ( (auto4B94B86E_ai >= 0 && lv_itCategory <= auto4B94B86E_ae) || (auto4B94B86E_ai < 0 && lv_itCategory >= auto4B94B86E_ae) ) ; lv_itCategory += auto4B94B86E_ai ) {
        if ((DataTableGetBool(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_MountCategoryIndex_" + IntToString(lv_itCategory) + "_GrantedBySkin")) == false)) {
            if ((lv_mountCategory == DataTableGetString(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_MountCategoryIndex_" + IntToString(lv_itCategory))))) {
                return true;

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:2217

    while (autoCC1ACBDA_ai <= autoCC1ACBDA_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoCC1ACBDA_ai);
        if ((DataTableGetBool(false, (lv_indexCategory)) == true)) {
            libComC_gf_CC_SetArmyCategoryState(lv_indexCategory, c_armyCategoryStateUnlocked);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:2428

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetBool(true, libCOMI_gf_CM_CoopAI_AttackForce_UseTransportName(lp_waypointIndex));
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:19822

        if ((lv_upgrade == UserDataGetGameLink("TheHornersMiraTakeOver", lv_inInstance, "Upgrade", 1))) {
            lv_skin = UserDataGetGameLink("TheHornersMiraTakeOver", lv_inInstance, "Skin", 1);
            if ((DataTableGetBool(true, ("CM_MTO_SkinApplied_" + (lv_skin) + "_" + IntToString(lv_player))) == false)) {
                libCOMI_gf_PlayerApplySkinSignal(lv_player, lv_skin, true, "Signal Mira");
                auto9B486C0C_userType = "TheHornersMiraTakeOver";

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:3886

        libNtve_gf_SetDialogItemText(lv_progressBarValue, TextTimeFormat(StringToText("<mintotal/>:<sec2/>"), lv_displayValue), PlayerGroupAll());
    }
    if ((DataTableGetBool(true, libCOUI_gf_CU_UnitProgressBar_Data2(lp_unit)) == true)) {
        DialogControlSetVisible(lv_progressBarValue, PlayerGroupAll(), true);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:3899

    }

    if ((DataTableGetBool(true, libCOUI_gf_CU_UnitProgressBar_IsWideBarString(lp_unit)) == true)) {
        lv_progressBarWidth = (lv_c_WidthWide * ( (IntToFixed(lv_curValue) - IntToFixed(lv_minValue)) / (IntToFixed(lv_maxValue) - IntToFixed(lv_minValue)) ));
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:5607

    while (auto39314A95_ai <= auto39314A95_ae) {
        lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto39314A95_ai);
        if ((DataTableGetBool(false, (lv_indexCategory)) == true)) {
            libA3DDD02B_gf_PP_SetArmyCategoryState(lv_indexCategory, c_armyCategoryStateUnlocked);
        }