booleanflags:Show

Previous Next

Shows the set of pairs of string values that are interpreted by flag-based string-to-boolean conversion as boolean true() and boolean false(). You can add items to this set by calling pc:define-boolean-flags.

Returns a node set.

Blend string-to-boolean conversion is performed by calling the function

booleanflags:ToBoolean()

 

and also as part of calling the directives IF these are executed with the pc:booleanflags="yes" switch:

pc:assign-boolean

pc:assign-boolean-default

 

Syntax

booleanflags:Show( )

 

Example

<example xmlns:pc="Processing.Command">
   <pc:assign-nodeset mylist="{booleanflags:Show()}"/>
   <pc:copy-of select="$mylist"/>
</example>

If this Example returns the following:

<Flags>
  <Flag true="true" false="false" index="0" />
  <Flag true="yes"  false="no"    index="1" />
</Flags>

then USoft Blend's flag-based string-to-boolean conversion will (case-insensitively) interpret the strings true and yes as boolean true(), and the strings false and no as boolean false().

 

See also

pc:assign-boolean

pc:assign-boolean-default

booleanflags:ToBoolean