Talk:Debugging Tips

From Second Life Wiki
Revision as of 13:07, 15 January 2013 by Gerard Paule (talk | contribs) (Some optimisation in the logic)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Some optimisation in the logic

I thought that if you invert the logic to test if notification is turned off then bail out otherwise continue evaluating the remaining test conditions.

<lsl> // uncoment this line to turn notifications off

   genus = "off"
   if ( genus = "off" )
   {
     ; // debugging is switched off
    
   }else {
     // : evaluate the remaining test notification conditions

  }

</lsl>

This should save unnecessary tests.

Gerard Paule 12:07, 15 January 2013 (PST)