Studio has a range of different tasks that you can use to build different processes. Being a no-code application you would not commonly be using any kind of code or any variables and functions. However, there would be times when you can achieve just the expected output using your custom variables; you can define conditional tasks without writing a single line of code.
Studio provides the Variable block which can be used to create the variables that can be used anywhere in the other tasks of the workflow. Now let us consider an example to understand the variable block. Let us consider a form for adding a request for leave. A notification or email should be sent to the initiator’s manager informing of the request. In this scenario, you create a variable block that would be used to fetch the name of the manager based on the username of the initiator.
Add the Variable block and click Continue. Now assign an appropriate task name and description(optional) and click Next.
Now add the Variable Name. You can add as many variables as you need. Once you have added the necessary variables, click Done.
This variable will be used in your workflow tasks as Taskname.defined_variable.
The variable block that is created can be used by other tasks within the workflow. You can use the variables as required.
To further understand how to use a variable block you can have a look at the video and tutorial here.