TSRef - TypoScript Reference
4.1.2. version
Syntax:
[version = value1, >value2, =value3, <value4, ...]
Comparison:
values are floating-point numbers with "." as the decimal separator.
The values may be preceeded by three operators:
|
Operator: |
Function: |
|---|---|
|
[nothing] |
The value must be part of the beginning of the version as a string. This means that if the version is "4.72" and the value is "4" or "4.7" it matches. But "4.73" does not match. Example from syntax: "value1" |
|
= |
The value must match exactly. Version "4.72" matches only with a value of "4.72" |
|
> |
The version must be greather than the value |
|
< |
The version must be less than the value |
Examples:
This matches with exactly "4.03" browsers
[version= =4.03]
This matches with all 4+ browsers and netscape 3 browsers
[version= >4][browser= netscape3]