Relational Routines - 7.1

Talend Data Management Platform Studio User Guide

Version
7.1
Language
English (United States)
Product
Talend Data Management Platform
Module
Talend Studio
Content
Design and Development

Relational routines allow you to check affirmations based on booleans.

To access these routines, double-click Relational under the system folder. The Relational class contains several routines, notably:

Routine

Description

Syntax

ISNULL

Checks if the variable provided is a null value.

It returns true if the value is NULL and false if the value is not NULL.

Relational.ISNULL(variable)

NOT

Returns the complement of the logical value of an expression.

Relational.NOT(expression)

isNull

Checks if the variable provided is a null value.

It returns 1 if the value is NULL and 0 if the value is not NULL.

Relational.isNull(variable)

To check a Relational Routine, you can use the ISNULL routine, along with a tJava component, for example:
String str = null;
System.out.println(Relational.ISNULL(str));

In this example, the test result is displayed in the Run view: