Decision table input expression

Is it possible to set if else condition input expression like this?

${(var2 != null) ? var2 : var1}

Basically, i have simple decision table with one input and one output column, and i have 2 variables for input column. If var2 is not null i want to use that as input column otherwise use var1.