Hello everyone,
I'm experiencing an issue with variable assignments in Botpress and could use some help. Here is the relevant code snippet, which integrated thorugh "execute code" card.
Problem: The console logs show that the values are correctly split and assigned to the variables vertical and ordertype. However, user.vertical and user.ordertype remain empty or undefined at the end.
What I've tried:
Console Logging: All console.log outputs show the expected values.
Troubleshooting: Double-checked the syntax and assignment logic multiple times.
Version Check: Ensured that I'm using the latest version of Botpress.
Questions:
Are there any known issues or bugs in Botpress that might prevent variable assignments from working correctly?
Do I need to use any specific settings or methods to ensure that the variables are assigned properly?
Has anyone else encountered similar issues and found a solution or workaround?
I appreciate any help you can provide. Thanks in advance!
https://cdn.discordapp.com/attachments/1244599639622287430/1244599639865430087/image.png?ex=6655b33d&is=665461bd&hm=ee510f107dbbee703916ecefec6e2ac97707100272bf894acb5ef1bedcc2dd98&