Talk:Debugging Tips

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.

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)