JUEL Expression Examples | Vantage Analyst - 1.1 - JUEL Expression Examples - Vantage Analyst

Vantage Analyst User Guide

prodname
Teradata Analytic Apps
Vantage Analyst
vrm_release
1.1
category
User Guide
featnum
B035-3805-099K

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