# 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
- [F] —
bool
— Data Table Value Exists — ( DataTableValueExists ) - [F] —
string
— Name Of Data Table Value — ( DataTableValueName ) - [F] —
int
[ preset::DataType ] — Type Of Data Table Value — ( DataTableValueType ) - [F] —
int
— Number Of Data Table Values — ( DataTableValueCount ) - [F] —
void
— Remove Data Table Value — ( DataTableValueRemove ) - [F] —
void
— Clear Data Table — ( DataTableClear )
# Examples
# campaigns/libertystory.sc2campaign
// L6764
DataTableValueExists(true, libCamp_gf_TS_HelpUnitsPanel_UnitTypeStringID(lp_unitType))
# campaigns/swarmstory.sc2campaign
// L4408
DataTableValueExists(true, lv_dataTableName)
// L7224
DataTableValueExists(true, libSwaC_gf_ZS_HelpUnitsPanel_UnitTypeStringID(lp_unitType))
# campaigns/voidstory.sc2campaign
// L1597
DataTableValueExists(true, lv_dataTableName)
// L6010
DataTableValueExists(true, libVoiC_gf_PS_HelpUnitsPanel_UnitTypeStringID(lp_unitType))
# mods/missionpacks/campaigncommon.sc2mod
// L88
DataTableValueExists(true, lv_dataTableName)
# mods/starcoop/starcoop.sc2mod
// L5196
DataTableValueExists(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lp_mutatorCount))
# mods/voidprologue.sc2mod
// L3225
DataTableValueExists(true, lv_dataTableName)
// L5418
DataTableValueExists(true, libA3DDD02B_gf_PP_HelpUnitPanel_EnabledUnitTypeStringID(lp_unitType))