Talk:;

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Considering the amount of use this little symbol gets I am amazed that it has no description. I was looking to see what it meant in the following usage. I have pulled this bit out of one of the example scripts found whilst looking at dialogs.


<lsl> {

           for (; i < c; ++i)
               MENU1 += llGetInventoryName(INVENTORY_OBJECT, i);
       }</lsl>


Other than the use at the end of a line it appears to be used in equasions too. But since there is no explination of what it means I came looking. Good luck if you were hoping to find out yourself. —The preceding unsigned comment was added on 02:31, 15 April 2009 by EddyFragment Robonaught sry for not signing before -- Eddy (talk|contribs) 04:42, 4 June 2009 (UTC)

In the for-loop above, the ; sign is used to end an empty line. The initializer in the for-loop can be omitted, however, the number of statements needs to equal 3. The loop could therefor also look like
<lsl> {
           for (i = 0; i < c; ++i)
               MENU1 += llGetInventoryName(INVENTORY_OBJECT, i);
       }</lsl>

in case it's supposed to start with 0. Zai signature.png Lynch (talk|contribs) 08:58, 15 April 2009 (UTC)

Hey there Zai. I am sooo sry for not responding with thanx but I didn't know you had explained (as you know I am noob and didn't know about watching things when I asked). So thank you for explaining and "Ahhhh". Makes sense now. lol. I can be quite stupid for a smart guy. -- Eddy 19:32, 3 June 2009 (UTC)