Developer Documentation Library > Scripting > 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.
Val can refer to any type of MDM object that has elements, for example, Field, Array, Grid or VariableInstance, or it can be an Elements list itself.
Elem
Type: None
Text or Categorical value specifying an element or Elements list in Val.
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
Type: Text
Optional. Names of versions to check.
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.
(return)
Type: Boolean
Whether the element/list exists in all specified versions of Val.
See also
Miscellaneous functions