You can define a record or class to encapsulate a group of variables. Here we define a Person class. A Person has a name and an age.
class Person
{
String name;
int age;
}
You can then declare a variable of this type and access its fields in the following way.
Person me; me.name = "Joe Bloggs"; me.age = 27; println( "I am " + me.name );