[Coldstuff] evaluate method
Joerg Weber
coldstuff@cold.org
Tue, 15 Jan 2002 14:56:50 +0100 (CET)
Hi there!
On Tue, 15 Jan 2002, Adam Cormany wrote:
> I just tried $root.eval on my cold and also on
> ice.cold with this:
> @program $user_soth.atc() +access=pub
> var resp;
>
> resp = .eval(["return 1 + 1"]);
> .tell("resp=" + resp);
>
> // $#Edited: 15 Jan 02 06:42 $user_soth
>
I think you have but a small typo:
resp = .eval(["return 1+1"])[2];
Try that :)
Can't check it out right now, no access to a ColdCore.
Joerg