# Data Table Value Exists

Grammarname value exists in the scope|Global/Local data table
FlagsNative | Function

Returns true if a data table value exists.

# Arguments

  • bool<preset::DataScope> — Scope
  • string — Name

Returns — bool

native bool DataTableValueExists(bool global, string name);

Category: Data Table / Utility

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:6764

    // Automatic Variable Declarations
    // Implementation
    return DataTableValueExists(true, libCamp_gf_TS_HelpUnitsPanel_UnitTypeStringID(lp_unitType));
}

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


    lv_dataTableName = ("ACHIEVEOPENED_" + (lp_achievement));
    if ((DataTableValueExists(true, lv_dataTableName) == true)) {
        return true;
    }

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

    // Automatic Variable Declarations
    // Implementation
    return DataTableValueExists(true, libSwaC_gf_ZS_HelpUnitsPanel_UnitTypeStringID(lp_unitType));
}

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

    libVoiC_gv_pC_AchievementsDisplayed += 1;
    lv_dataTableName = ("ACHIEVEOPENED_" + (lp_achievement));
    if ((DataTableValueExists(true, lv_dataTableName) == true)) {
        return true;
    }

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

    // Automatic Variable Declarations
    // Implementation
    return DataTableValueExists(true, libVoiC_gf_PS_HelpUnitsPanel_UnitTypeStringID(lp_unitType));
}

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

    libComC_gv_cC_AchievementsDisplayed += 1;
    lv_dataTableName = ("ACHIEVEOPENED_" + (lp_achievement));
    if ((DataTableValueExists(true, lv_dataTableName) == true)) {
        return true;
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:5195

    // Automatic Variable Declarations
    // Implementation
    if ((DataTableValueExists(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lp_mutatorCount)) == true)) {
        return DataTableGetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lp_mutatorCount));
    }

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


    lv_dataTableName = ("ACHIEVEOPENED_" + (lp_achievement));
    if ((DataTableValueExists(true, lv_dataTableName) == true)) {
        return true;
    }

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

    // Automatic Variable Declarations
    // Implementation
    return DataTableValueExists(true, libA3DDD02B_gf_PP_HelpUnitPanel_EnabledUnitTypeStringID(lp_unitType));
}