# Data Table Value Exists
Grammar — name value exists in the scope|Global/Local data table
Flags —Native
|Function
Returns true if a data table value exists.
# Arguments
bool
<preset::DataScope> — Scopestring
— Name
Returns — bool
native bool DataTableValueExists(bool global, string name);
# Related
Category: Data Table / Utility
- Data Table Value Exists —
bool
— DataTableValueExists - Name Of Data Table Value —
string
— DataTableValueName - Type Of Data Table Value —
int
<preset::DataType> — DataTableValueType - Number Of Data Table Values —
int
— DataTableValueCount - Remove Data Table Value —
void
— DataTableValueRemove - Clear Data Table —
void
— DataTableClear
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:6764
// Automatic Variable Declarations
// Implementation
return DataTableValueExists(true, libCamp_gf_TS_HelpUnitsPanel_UnitTypeStringID(lp_unitType));
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4408
lv_dataTableName = ("ACHIEVEOPENED_" + (lp_achievement));
if ((DataTableValueExists(true, lv_dataTableName) == true)) {
return true;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7224
// Automatic Variable Declarations
// Implementation
return DataTableValueExists(true, libSwaC_gf_ZS_HelpUnitsPanel_UnitTypeStringID(lp_unitType));
}
campaigns/voidstory.sc2campaign — base.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.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6010
// Automatic Variable Declarations
// Implementation
return DataTableValueExists(true, libVoiC_gf_PS_HelpUnitsPanel_UnitTypeStringID(lp_unitType));
}
mods/missionpacks/campaigncommon.sc2mod — base.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.sc2mod — base.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.sc2mod — base.sc2data/LibA3DDD02B.galaxy:3225
lv_dataTableName = ("ACHIEVEOPENED_" + (lp_achievement));
if ((DataTableValueExists(true, lv_dataTableName) == true)) {
return true;
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:5418
// Automatic Variable Declarations
// Implementation
return DataTableValueExists(true, libA3DDD02B_gf_PP_HelpUnitPanel_EnabledUnitTypeStringID(lp_unitType));
}