Survey Tabulation > Advanced expressions > UNICOM Intelligence function library > Miscellaneous functions > IsElementInVersions
 
IsElementInVersions
Tests whether an element or list exists in all specified versions of a variable.
Syntax
IsElementInVersions(Val, Elem, Versions)
Parameters
Val
Type: None
Variant value, used only to specify which MDM object to use.
Elem
Type: None
Text or Categorical value specifying an element or Elements list in Val.
Versions
Type: Text
Optional. Names of versions to check.
(return)
Type: Boolean
Whether the element/list exists in all specified versions of Val.
Val may refer to any type of MDM object that has elements, for example, Field, Array, Grid or VariableInstance, or it may be an Elements list itself.
If Elem is of type Text, it is assumed to be the full name or numeric value of either a single Element or an Elements list. If Elem is of type Long, it is assumed to be the numeric value of an Element or Elements list. If Elem is of type Categorical, its first value is used to specify the Element or Elements list. If Elem is empty or NULL, the return value is False. If Elem is of any other type, an error occurs. If Elem specifies a value that does not correspond to an Element or Elements list in the MDM document, the return value is False.
Versions is a version expression as used in the Open method of an MDM Document. If Versions is omitted or blank, all versions of Val that are currently selected in the MDM document are used.
See also
Miscellaneous functions