Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.22. If Allowed        5.3.24. If Login>

Print / Download:
Available languages: english Last update: 2005-08-04 13:15:17

5.3.23. If Subscription

Purpose:

Depending on the given condition, it runs the first, the second list of instructions or neither of them. If the subscription event did not occur, neither of the instructions list will be run. (This implies a certain order to be followed; that is, the template containing If Subscription must follow a template containing Subscription). It may be used anywhere in the template. It is used to describe the subscription result.

Syntax:

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

where

<condition> = ok | error | trial | paid | action

  • ok: the if condition is true if subscription action was taken and its result is success

  • error: the if condition is true if subscription action was taken and its result is error

  • trial: the if condition is true if subscription action was taken and its type is trial

  • paid: the if condition is true if subscription action was taken and its type is paid

  • action: the if condition is true if subscription action was taken

The list of instructions may contain any instruction allowed in 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.23. If Subscription
There are no user contributed notes for this page.

<5.3.22. If Allowed 5.3.24. If Login>

  Last update: 2005-08-04 13:15:17
Website powered by Docmint Last update: 2005-08-04 13:15:17
Total page time: 1.84275889397