Talk:;

From Second Life Wiki
Jump to navigation Jump to search

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.


       {
           for (; i < c; ++i)
               MENU1 += llGetInventoryName(INVENTORY_OBJECT, i);
       }


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

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)