Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.27. If Image        5.3.29. With>

Print / Download:
Available languages: english Last update: 2005-08-16 10:00:12

5.3.28. If Language

Purpose:

Depending on the given condition, it runs the first or second list of instructions. It may be used anywhere in the template.

Syntax:

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

where

<condition>=

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

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

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

  • number: the if condition is true if operation: number <integer_operator> <integer_value> is true

  • name, englname, code: the if condition is true if operation: name|englname|code <string_operator> <string_value> is true where englname is the English name of the language, name is the original language name

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 add a note User Contributed Notes
5.3.28. If Language
There are no user contributed notes for this page.

<5.3.27. If Image 5.3.29. With>

  Last update: 2005-08-16 10:00:12
Website powered by Docmint Last update: 2005-08-16 10:00:12
Total page time: 0.793465137482