1.1 - JUEL Expression Examples - Teradata Analytic Apps - Vantage Analyst

Vantage Analyst with Machine Learning Engine User Guide

Product
Teradata Analytic Apps
Vantage Analyst
Release Number
1.1
Published
December 2019
Language
English (United States)
Last Update
2020-08-06
dita:mapPath
ezh1551894635141.ditamap
dita:ditavalPath
wsp1565965728073.ditaval

A more complex use case involves four Integer variables in a workflow. The following JUEL expressions are used in the workflow node's parameters:

var1 = 10 , var2 = 20, var3 = 30, var4 = 40

JUEL String Replacement Examples
Example Result Result Data Type
${var1} + ${var2} 10 + 20 string
(${var1} + ${var2}) / ${var3} (10 + 20) / 30 string
${var1} * 20 10 * 20 string
${var1} 10 integer
${var1} > 100 ? 100 : ${var1} 10 > 100 ? 100 : 10 string
${var1} == 10 10 == 10 string
${var1} > 100 10 > 100 string
${var1} < ${var2} 10 < 20 string
(${var1} == 20) OR (${var2} == 30) (10 == 20) OR (20 == 30) string
(${var1} < ${var2}) OR (${var3} < ${var4}) (10 < 20 ) OR (30 < 40) string
JUEL Calculated Value Examples
Example Result Result Data Type
Calculate value
${var1 + var2} 30 integer
${(var1 + var2) / var3} 1 integer
${var1 * 20} 200 integer
${var1} 10 integer
${var1 > 100 ? 100 : var1} 10 integer
Evaluate logical
${var1 == 10} TRUE boolean
${var1 > 100} FALSE boolean
${var1 < var2} TRUE boolean
${(var1 == 20) OR (var2 == 30)} FALSE boolean
${(var1 < var2) OR (var3 < var4)} TRUE boolean