ID:273011
 
Just an example with the code:
world<<"There are [l.len] objs in the world"


If it's only one obj in the world, I would like it to say "There is only 1 obj in the world".

I'm not sure how to do this :/
Vic Rattlehead wrote:
Just an example with the code:
> world<<"There are [l.len] objs in the world"
>

If it's only one obj in the world, I would like it to say "There is only 1 obj in the world".

I'm not sure how to do this :/

if(l.len>1) world<<"There are [l.len] objs in the world"
else if(l.len==1) world<<"There is WUN OBJ!"
else world<<"DER IZ NO OBJS!"
In response to AJX
*slaps forehead* I didn't think to try that. Thanks, AJX!
world << "There are [l.len] obj\s in the world"


http://www.byond.com/docs/ref/info.html#/DM/text/macros