[Opensim-users] LSL Syntax in Opensim - restrictions?

Torrid Luna torrid at primforge.com
Wed Dec 9 19:43:46 UTC 2009


Am 09.12.2009 11:27, schrieb Ai Austin:
>              if( ((c = llList2Float(time,a)) <= ticks) || 
> (llGetAgentSize(d = llList2Key(users,a)) == <0.0,0.0,0.0>))
>   
the argument to if contains an assignment (c = llL...) which itself returns either a Boolean (in the sense of "Success") or the value of the successfully changed variable in SL-LSL and other languages. In SL-LSL it behaves like that, and is allowed (although bad style), but not in Opensim-LSL.

You can rewrite it as

c = llList2Float(time,a);
d = llList2Key(users,a);

if (c <= ticks || llGetAgentSize(d) == <0.0 ,0.0 ,0.0>){
    ....


Cheers,
Torrid




More information about the Opensim-users mailing list