[Laszlo-checkins] r12948 - in openlaszlo/trunk/docs/src/developers: . programs

lou@openlaszlo.org lou at openlaszlo.org
Thu Feb 19 10:40:43 PST 2009


Author: lou
Date: 2009-02-19 10:40:16 -0800 (Thu, 19 Feb 2009)
New Revision: 12948

Added:
   openlaszlo/trunk/docs/src/developers/programs/unless.lzx
   openlaszlo/trunk/docs/src/developers/programs/when.lzx
Removed:
   openlaszlo/trunk/docs/src/developers/programs/compiler-$2.lzx
Modified:
   openlaszlo/trunk/docs/src/developers/compiler.dbk
Log:
Change 20090219-lou-g by lou at loumac.local on 2009-02-19 14:33:12 AST
    in /Users/lou/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: dguide, Chapter 15. Program Structure: add additional syntax for <switch>

New Features:

Bugs Fixed: LPP-7552

Technical Reviewer: (pending)
QA Reviewer: henry
Doc Reviewer: (pending)

Details: add syntax from Henry's comment.
    
Tests: visual verify



Modified: openlaszlo/trunk/docs/src/developers/compiler.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/compiler.dbk	2009-02-19 18:37:11 UTC (rev 12947)
+++ openlaszlo/trunk/docs/src/developers/compiler.dbk	2009-02-19 18:40:16 UTC (rev 12948)
@@ -395,13 +395,27 @@
           <literal>$js1</literal>.</para>
 
       <example role="live-example">
-        <title>&lt;switch&gt; for conditional compilation</title>
+        <title>&lt;switch&gt; using &lt;when&gt; for conditional compilation</title>
         <programlisting language="lzx">
-   <textobject><textdata fileref="programs/compiler-$2.lzx"/></textobject> 
+   <textobject><textdata fileref="programs/when.lzx"/></textobject> 
    </programlisting>
       </example>
 
-      <para/>
+<para>You can also use <literal>unless</literal> in a similar way.</para>
+      
+      <example role="live-example">
+        <title>&lt;switch&gt; using &lt;unless&gt; for conditional compilation</title>
+        <programlisting language="lzx">
+          <textobject><textdata fileref="programs/unless.lzx"/></textobject> 
+        </programlisting>
+      </example>
+      
+      You can also use this syntax:
+      <programlisting>&lt;when property="$runtime" value="swf9"&gt; // checks for string equality </programlisting>
+        
+        And for back compatibility: 
+        
+        <programlisting>&lt;when runtime="swf9"&gt;</programlisting>
     </section>
     <section>
       <title>Font and Face</title>

Deleted: openlaszlo/trunk/docs/src/developers/programs/compiler-$2.lzx

Added: openlaszlo/trunk/docs/src/developers/programs/unless.lzx


Property changes on: openlaszlo/trunk/docs/src/developers/programs/unless.lzx
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: openlaszlo/trunk/docs/src/developers/programs/when.lzx


Property changes on: openlaszlo/trunk/docs/src/developers/programs/when.lzx
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native



More information about the Laszlo-checkins mailing list