Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.19. If Issue        5.3.21. If Article>

Print / Download:
Available languages: english Last update: 2005-08-16 09:56:31

5.3.20. If Section

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 section.

Syntax:

If [not] Section <condition>
<list_of_instructions>
[Else [<list_of_instructions>]]
EndIf [Section]

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).

<condition>=

number <integer_operator> <integer_value>
| name <string_operator> <string_value>
| defined
| fromstart

  • number: the if condition is true if runtime section number is in <integer_operator> relation with <integer_value>

  • name: the if condition is true if runtime section name is in <string_operator> relation with <string_value>

  • defined: the if condition is true if section parameter is defined

  • fromstart: the if condition is true if actual value of section parameter is equal with the value from template start

Constraints:

None.


add a note add a note User Contributed Notes
5.3.20. If Section
There are no user contributed notes for this page.

<5.3.19. If Issue 5.3.21. If Article>

  Last update: 2005-08-16 09:56:31
Website powered by Docmint Last update: 2005-08-16 09:56:31
Total page time: 0.809780836105