Real quick eval() question
by Drew -Gaiiden- Sikora · in Torque Game Builder · 11/28/2005 (10:25 pm) · 2 replies
I'm using eval() on a function that takes string parameters. Currently I'm doing this:
for (%player = 1; %player < 5; %player++)
{
%param1 = "controller";
%param2 = "value";
eval("%tempData = TorqueDB.searchByInstanceWithClass(%param1, %param2, $player" @ %player @ ".controller);");
...
...
}Is there a way I can still include the string values without having to store them in locals first? I don't really mind doing it this way but I'm curious.
Torque 3D Owner Robert Blanchet Jr.
eval("echo(\"Hello World!\");");