Daisy documentation
 PreviousHomeNext 
4.12.17 p:idsBook Index4.12.19 p:myComments

4.12.18 p:if

Allows to execute a part of the publisher request only if a certain test is satisfied.

4.12.18.1 Request

Syntax:

<p:if test="...">
  [... child instructions ...]
</p:if>

The test attribute specifies a conditional expression (an expression evaluating to true or false) in the same format as used in the Daisy query language.

For example:

<p:if test="$MyField > 20">
  ...
</p:if>

4.12.18.2 Response

If the test evaluated to true, the output of the child instructions, otherwise nothing.

 PreviousHomeNext 
4.12.17 p:ids4.12.19 p:myComments