Just a lil addition - if you want to use the variable within a split or something like that, you'd just have to use the following syntax in the expression editor:

$ - This is a string type value to be returned from the variable
() - The info we are looking for
vars - We’re looking at an event variable
/@{name} - The variable
The above info is for a event variable - if you wanted to access an instance variable, you’d just look at something like $(instance/vars/@variable)
If you want the returned variable to be in a different format, you’d change the $ to:
$long
$float
$boolean
$datetime
I'm referencing largely the top of this campaign standard page, but it works the same in Classic from my testing (please let me know if I'm wrong) :
https://experienceleague.adobe.com/docs/campaign-standard/using/managing-processes-and-data/calling-...