Table of Contents

Search

  1. Preface
  2. Function reference
  3. Constants
  4. Operators
  5. Dates
  6. Functions
  7. System variables
  8. Datatype reference

Function Reference

Function Reference

Dot operator (Structs)

Dot operator (Structs)

Use a dot operator to access an element in a struct.

Syntax

To access an element in a struct, use the following syntax:
struct.element
The following table describes the arguments in the syntax:
Argument
Description
struct
Struct data type. Struct from which you want to access an element.
You can enter any valid transformation expression that evaluates to a struct.
element
Name of the struct element that you want to access.

Return Value

Element in the struct. The return type is the same as the data type of the element.
NULL in the following situations:
  • The element in the struct has a NULL value.
  • The struct is NULL.

Examples

You have the following struct:
location{ street: NULL city : 'NEWYORK' state: 'NY' zip : 12345 }
The following expressions use a dot operator to access elements in the struct:
Input Value
RETURN VALUE
location.street
NULL
location.city
'NEWYORK'
location.state
'NY'
location.zip
12345

0 COMMENTS

We’d like to hear from you!