if (!workflow || workflow.answer === undefined) { ...
# đź’»developers
g
if (!workflow || workflow.answer === undefined) { // The variable is not set, store "test" in workflow.test workflow.test = "test"; console.log("workflow.answer is not set, stored 'test' in workflow.test "); } else { // The variable is set, do something with workflow.answer console.log("The variable workflow.answer exists:", workflow.answer); }