Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Testing for empty string

Random Torok
Registered User
Join date: 19 Mar 2007
Posts: 33
06-21-2007 14:21
Hi there;

It seems when using llKey2Name() if the key belongs to a group the string will be empty.

Does anyone know how to test for an empty string?

And can someone tell me how to convert a group key to the name of the group?

RT
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-21-2007 15:20
From: Random Torok
Does anyone know how to test for an empty string?
something like:
if (testStringVar == "";)
...
From: someone

And can someone tell me how to convert a group key to the name of the group?
I suspect this might not be possible.
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
06-21-2007 16:24
From: Qie Niangao
if (testStringVar == "";)
OR:

if( llStringLength( testStringVar ) == 0 )

OR:

if( !llStringLength( testStringVar ) ) // same as above

OR:

if( testStringVar )
// string is NOT empty

I don't believe this works, though:
if( !testStringVar )