Extensions.Util.IsInitialized

From emotive
Revision as of 04:52, 8 November 2018 by Hb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

Icons Note.png 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