T
Typebot•17mo ago
EpicFace

Output a variable with the script block

Is it possible to have a script in the script block to generate a variable as an output? Also... Do you have any tutorials on the script block? I could only find one.
5 Replies
Mario Barretta
Mario Barretta•17mo ago
Script block | Typebot docs
The "Script" block allows you to execute Javascript code. If you want to set a variable value with Javascript, use the Set variable block instead. You can't set a variable with the script block.
FAQ | Typebot docs
Why some of my results are empty?
Baptiste
Baptiste•17mo ago
Check out the Set variable block @EpicFace (https://docs.typebot.io/editor/blocks/logic/set-variable)
Set variable | Typebot docs
The "Set variable" block allows you to set a particular value to a variable.
EpicFace
EpicFaceOP•17mo ago
Hi yeah I figured it out... Thanks
Baptiste
Baptiste•17mo ago
I'm wondering how I can improve this because it's a commonly asked questions from new users 🤔

Did you find this page helpful?