5.3.19. If Issue
Purpose:
Depending on the given condition, it runs the first
or second list of instructions. It may be used anywhere in the
template. It is used when printing information for a certain issue.
Syntax:
If [not] Issue <condition>
<list_of_instructions>
[Else [<list_of_instructions>]]
EndIf [Issue]
where
name: the if condition is true if actual issue name is in <string_operator> relation with <string_value>
number: the if condition is true if actual issue number is in <integer_operator> relation with <integer_value>
publish_date: the if condition is true if actual issue publish date is
in <date_operator> relation with <date_value>
defined: the if condition is true if issue parameter is defined
fromstart: the if condition is true if actual value of issue parameter is equal with the value from template start
iscurrent: the if condition is true if actual issue is the current issue (the last published issue)
Example:
<!** If Issue number is 1>
This is Issue number 1
<!** EndIf>
The
list of instructions may contain any instruction allowed in the current
context. If it is used inside a list, it must respect the constraints
of the list (List Issue, List Section, List Article, List Subtitle,
List SearchResult).
Constraints:
None.
add a note
User Contributed Notes
5.3.19. If Issue
There are no user contributed notes for this page.