|
<dpIf>
D E F I N I T I O N: |
|
|
Conditional tests allow you to make comparisons within your templates. For example, you can calculate how many characters are in a story, and provide a special layout for each circumstance.
Simple Condition Syntax
<dpIf (comparison statement)> Complete Condition Syntax
<dpIf (comparison statement)>
The following can be read as "If the section for this story is music, then display the message You're in the music section":
<dpIf <dpSection>="music"> The following can be read as "If the section for this story is music, then display the message You're in the music section, else (otherwise) display You're not in the music section":
<dpIf <dpSection>="music"> The following can be read as "If the section for this story is music, then display the message 'You're in the music section', else if the section for this story is film, then display the message 'You're in the film section', else (otherwise) display 'You're not in the music or film section' ."
<dpIf <dpSection>="music"> The following can be read as "If you're not in the film section, display the message Go to the film section":
<dpIf <dpSection> != "film">
|
| Home:
Support:
Reference Guide:
|
Questions? Comments? Please write support@desert.net. |