Talk:Debugging Tips

From Second Life Wiki
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)