Are you thinking of something like this: function...
# đź’»developers
f
Are you thinking of something like this: function calculateQuote() : const userChoice = workflow.userChoice switch (userChoice) { case 'Option1': workflow.calculatedValue = /* loxig to calculate value for Option1 */; break; case 'Option2': workflow.calculatedValue = /* logic to calculate value for Option2 */; break; default: workflow.calculatedValue = /* default value or logic */; } calculateQuote();