cold-jewelry-54343
08/02/2023, 11:56 AM// Inside the "userChoice" node logic
const userChoice = event.payload.value;
let result = "";
switch (userChoice) {
case "1":
result = "Liefde";
break;
case "2":
result = "Lust";
break;
default:
result = "Leven";
break;
}
// Store the 'result' in a flow variable
workflow.result = result;
https://cdn.discordapp.com/attachments/1136266393847873598/1136266394003046532/brave_2023-08-02_13-56-30.jpg▾
colossal-egg-20510
08/02/2023, 3:46 PMevent.preview
variable but I would recommend using the variable you set in your choice option instead workflow.mychoice
. This is will be more precise, the event.preview
variable could contain a random message that the user sent to your bot. 🙂cold-jewelry-54343
08/02/2023, 6:42 PMhttps://cdn.discordapp.com/attachments/1136266393847873598/1136368364214829189/brave_2023-08-02_20-42-00.jpg▾
cold-jewelry-54343
08/02/2023, 6:44 PMif chicken === 1 (dance);
colossal-egg-20510
08/03/2023, 3:19 PMcold-jewelry-54343
08/03/2023, 4:00 PM