Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

. 

<part>
<name>switch_light_section_off</name>
<animation>
<parameter>
<code>
25 (L:switch_light_section_off, number) 25 * +
</code>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>Section Light</tooltip_text>
<mouse_flags>LeftSingle+RightSingle</mouse_flags>
<callback_code>
(M:Event) 'LeftSingle' scmp 0 ==
if{ (L:switch_light_section_off, enum) -- -1 max (>L:switch_light_section_off, enum) and (L:switch_light_section_on, enum) -- -1 max (>L:switch_light_section_on, enum) }
(M:Event) 'RightSingle' scmp 0 ==
if{ (L:switch_light_section_off, enum) ++ 1 min (>L:switch_light_section_off, enum) and (L:switch_light_section_on, enum) ++ 1 min (>L:switch_light_section_on, enum) }
</callback_code>
</mouserect>
</part>

I would not learn anything if Bill were to post the perfect code.

