Yup, it is not possible right now but I did have a talk with Baptiste that voiceflow allows you to set multiple variable in Script Block..
Workaround: Save all the variable values as an array example:
const a=1;
const b=2;
let sum = a + b;
let product = a * b;
return [sum, product];
and then create 2 more Set Variable block as assign the value from array to you {{sum}} and {{product}} variable..
issue with this workaround?
- must remember the index for each variable (you can use json key and value i guess too)
- n*1 blocks for the amount of variables you need to set 😅