Executing code based on a condition can be performed using if and if / else statements.
...
If Statement Syntax (den = Data Export Name)
if (#den1 == 0) {
#den2 = 1;
Other statements here...
}
If - Else Statement Syntax (den = Data Export Name)
if (#den1 == 0) {
#den2 = 1;
} else if (#den1 == 1) {
#den2 = 2;
} else if (#den1 == 2) {
#den2 = 3;
} else {
#den2 = 0;
}