<when> block which evaluates to true will
include that block of code in the compilation. This provides a mechanism to
conditionally include alternate blocks of code, depending on the value of
The supported attributes for
<property>, which looks at a boolean compile time property: for example
<when property="$as3">checks for Boolean true.
<value>, checks that the given compile time property equals the given literal value: for example
<when property="$runtime" value="swf9">checks for string equality.
<runtime>attribute, equivalent to the above:
The possible compile time constants are:
The following examples show the use of the
<unless> , and
This program has been compiled for DHTML</
This program has been compiled for SWF</
You can also use
<unless> in a similar way.
Must be SWF10</
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.