How to handle conditional variables in a job defintion?

How can we create conditional variables in a job definition?

lkft-common!39 (diffs)