Evaluating test conditions in fragments

Here, the body of the fragment will only ever be expanded in a FragmentInclude if Test (evaluated as a PHP expression) returns true. In this case, the test ensures that it is not just an empty string, which it defaults to unless overridden.

<Fragment Name="frgTest" Data="" >
   <FragmentTest Test="'{Data}'!=''" />
   <!-- Do something with {Data} -->
</Fragment>