šŸŽÆ Question about using variables in Script block

Hi everyone! I'm working with a Script block in Typebot and I need to use some variables previously collected in the flow, like numeroInterno and codigoPago.

I'm trying to access them in the script like this:
console.log("Internal Number:", numeroInterno);
console.log("Payment Code:", codigoPago);

But I get this error:
ReferenceError: Cannot access 'numeroInterno' before initialization

šŸ¤” What's the correct way to access flow variables inside a Script block?
Do I need to declare them or use a specific syntax to make them available as JavaScript variables?

Any help or working example would be greatly appreciated šŸ™
Was this page helpful?