Which type of variable are you looking for?
Reference
If you’re looking for an explanation on how to define and use action, validation, or repository variables using the Ranorex Studio UI, go to
Ranorex Studio advanced > Data-driven testing > ⇢ Define variables
Reference
If you’re looking for an explanation on how to define and use module variables in code modules, go to
Ranorex Studio expert > Code modules > ⇢ Module variables and data-driven testing