Tag Definition: if_b
Generated by rlextra version 3.6.13
Attributes
Name |
Required? |
Default_Value |
Values |
cond |
required |
None |
|
Can contain |
Purpose
This lets you run python-like if conditions within rml. This uses the dynamic rml dtd. See the relevant rml sample here.
Example usage
<!DOCTYPE document SYSTEM "../dynamic_rml.dtd">
<document filename='test_020_dynamic.pdf'>
...
<story>
<script_b>x = False</script_b>
<if_b cond="not x">
<loop_b var="v" in="(1,2),(3,4),(5,6),(7,8),(9,10)">
<para><expr>v[0]</expr>: <expr>v[1]</expr></para>
</loop_b>
</if_b>
</story>
</document>
Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.