Talk:Debugging Tips

From Second Life Wiki
Jump to: navigation, 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



This should save unnecessary tests.

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