# JUEL Expression Examples | Vantage Analyst - JUEL Expression Examples - Teradata Analytic Apps - Vantage Analyst

## Vantage Analyst User Guide

Product
Vantage Analyst
Release Number
1.4.1
Published
May 2022
Language
English (United States)
Last Update
2022-05-09
dita:mapPath
ufz1626905554941.ditamap
dita:ditavalPath
wsp1565965728073.ditaval
dita:id
B035-3805
Product Category

A more complex example involves four Integer variables in a workflow list. The following JUEL expressions are used in workflow node 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