Thank you for your quick reply. It's solved!I recommend using the Value property instead of SetVariableValue. Take a look at this page for an example:
Accessing Variables from non-Task Objects - Opsive
Variables are normally referenced by assigning the variable name to the task field within the Behavior Designer inspector panel. Local variables can also be accessed . . .opsive.com