Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.15. If NextSubtitles | PrevSubtitles        5.3.17. Include>

Print / Download:
Available languages: english Last update: 2005-08-16 09:52:27

5.3.16. If List

Purpose:

Depending on the given condition, it runs the first or second list of instructions. It can be used inside List instructions. It is used to build tables from lists.

Syntax:

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

where

<condition>=

row <table_item_values>
|column <table_item_values>
|index <table_item_values>
|start
|end

<table_item_values> = odd|even|<number_list>

<number_list>=

[<integer_value>] <number_list>
|
<integer_value>

Example:

<!** If List row odd>
Odd row
<!** Else>
Even row
<!** EndIf>

<!** If List row 1 4 5>
Row is 1, 4 or 5
<!** Else>
Row is 2, 3 or bigger than 5
<!** EndIf>

<!** If List start>
Draw table head
<!** Else>
Draw table row
<!** EndIf>

Building a table:

<!** List columns 3 ... >
<!** If List start> <-- start table --> <table> <!** EndIf>
<!** If List column 1> <-- start new row --> <tr> <!** EndIf>
<td> write text/data here </td>
<!** If List column 3> <-- close row --> </tr> <!** EndIf>
<!** If List end> <-- end table --> </table> <!** EndIf>
<!** EndList>

Constraints:

Can only be used only inside List statements.


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

<5.3.15. If NextSubtitles | PrevSubtitles 5.3.17. Include>

  Last update: 2005-08-16 09:52:27
Website powered by Docmint Last update: 2005-08-16 09:52:27
Total page time: 0.816900014877