Talk:Debugging Tips
Revision as of 12:07, 15 January 2013 by Gerard Paule (talk | contribs) (Some optimisation in the logic)
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)