Difference between revisions of "Talk:;"

From Second Life Wiki
Jump to navigation Jump to search
m
 
Line 2: Line 2:




        {
<lsl>        {
             for (; i < c; ++i)
             for (; i < c; ++i)
                 MENU1 += llGetInventoryName(INVENTORY_OBJECT, 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. {{unsigned|EddyFragment Robonaught|02:31, 15 April 2009}}
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. {{unsigned|EddyFragment Robonaught|02:31, 15 April 2009}} sry for not signing before -- '''[[User:EddyFragment Robonaught|Eddy]]'''  <sup><small>([[User talk:EddyFragment_Robonaught|talk]]|[[Special:Contributions/EddyFragment_Robonaught|contribs]])</small></sup> 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
: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

Latest revision as of 20:42, 3 June 2009

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)