View Single Post
# 26 11-01-2003 , 12:51 PM
mayan666's Avatar
Registered User
Join Date: Aug 2002
Location: Lisbon, Portugal
Posts: 80
I can't resist asking about this annoying thing happening to me. I've been reading the Mel documentation and everytime I control+enter some code which has stuff between '' maya sends a syntax error! This happens even with code from the doc itself. Is it possible that have my maya misconfigured or something? Or is it me who's not understanding the use of these ''? I believe they're used to assign to a variable the return of the function run specified between the ''.

Example:

string $a[];
$a = 'particle -p 5 0 5 -name Sun';
print($a);

gives syntax error in line 2 user added image
But this one works:

string $a[];
$a = eval("particle -p 5 0 5 -name Sun");
print($a);


mayan@netcabo.pt