textCtrlID.setText("Stuff" @ %var/$var);
Examples:
textCtrl.setText("Welcome, " @ $Pref::Player::NetName @ "!");
Prints "Welcome, <your name>!"
textCtrl.setText("my text control name: " @ textCtrl.getName());
Prints "my text control name: textCtrl"
in a function
%someStringHere = "hello";
textCtrl.setText("my text: " @ %someStringHere);
Prints "my text: hello"
%x = 3;
%y = 2;
%z = 5;
textCtrl.setText("my coords: " @ %x SPC %y SPC %z);
Prints "my coords: 3 2 5"