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
User Contributed Notes
5.3.23. If Subscription
There are no user contributed notes for this page.