The supported attributes for <when> are
'property', which looks at a boolean compile time property
<when property="$as3"> // checks for Boolean true
'property' with 'value', checks that the given compile time property equals
the given literal value
<when property="$runtime" value="swf9"> // checks for string equality
and for back compatibility, the 'runtime' attribute, equivalent to the
above:
<when runtime="swf9">
<unless> takes the same arguments as <when>, it just has the sense
inverted, so it includes it's body if
the condition is false.
On Sat, Sep 11, 2010 at 6:06 PM, Lou Iorio <[email protected]> wrote:
> Are <property> and <value> the only two attributes for <when>?
> What are the possible values?
>
> Are the attributes for <unless> the same as those for <when>?
>
> My plan is to do simple reference pages for <when>, <unless>,
> and <otherwise>, and link from those pages to the <switch> page.
>
--
Henry Minsky
Software Architect
[email protected]