Extensions.Util.IsInitialized
Jump to navigation
Jump to search
Contents
Classification
Name | IsInitialized |
Short Description | Checks the variable for initialization |
Class | Term |
Extension | OTX Util extension |
Group | Util related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm Util.IsInitialized(Variable declaration);
Description
The OTX IsInitialized term returns TRUE if the declaration is initialized otherwise FALSE. Always returns true for data types that have an explicit initialization part.
Return Value
The Term returns the value, see table below.
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Boolean | Returns TRUE if the declaration is initialized otherwise FALSE. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Declaration | - | Variable | - | [1..1] | Represents the variable, which shall be checked for initialization. |
OTL Examples
/// Local Declarations
ByteField ByteField1;
Boolean Boolean1 = false;
/// Flow
Boolean1 = Util.IsInitialized(ByteField1);
See also
Compare
CopyByteField
GetRandomNumber
ListIndexOf
ListIndexOfAny
ListReverse
ListSort
Max
Min
StringFormat