pre Parameter - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.7
Category
Reference Guide

A pre of a rule is a list of precondition objects, with the three following mandatory fields:

  • type: equals or differs,
  • param: string, parameter name,
  • value: parameter value.

The list can be empty meaning that the match part rule will always be checked

Examples

"pre": [],

Is a precondition meaning: always apply this rule (no precondition).

"pre": [
{
"type": "equals",
"param": "afs:filter",
"value": "lang=\"fr\""
}
],

Is a precondition meaning: apply the rule only if afs:filter is set to lang="fr"

"pre": [
{
"type": "differs",
"param": "afs:filter",
"value": "lang=\"fr\""
}
],

Is a precondition meaning: apply the rule only if afs:filter is not set to lang="fr"