How to check if DateTime Variable is empty to skip addYears?

0
In a CreateObject action I need to use the DateTime variable of an existing object and add 1 year. That works, but if it is empty this gives an error. How can I check in the expression if the Variable is empty, so the addYears is skipped (if ... else ..)
asked
2 answers
1

In front of the createObject-activity, add a decision checking

$ExistingObject/DateTimeVariable != empty

 

answered
0

Use if else statements in the create activity, if $date = empty then empty else addYear($date).

answered