Skip to content

Commit

Permalink
[BUGFIX] Fix "if" examples (#1489)
Browse files Browse the repository at this point in the history
Resolves #1488

Releases: main, 13.4, 12.4
  • Loading branch information
linawolf authored Dec 24, 2024
1 parent c18dff7 commit 0afd7c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Documentation/Functions/If.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ bitAnd
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
hideDefaultLanguageOfPage = TEXT
hideDefaultLanguageOfPage {
lib.hideDefaultLanguageOfPage = TEXT
lib.hideDefaultLanguageOfPage {
value = 0
value {
override = 1
Expand Down Expand Up @@ -356,8 +356,8 @@ If you want to compare values, you must load a base-value in the
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
page.10.value = 10
page.10.isGreaterThan = 11
page.10.if.value = 10
page.10.if.isGreaterThan = 11
This would return true because the value of :typoscript:`isGreaterThan` is
greater than 10, which is the base-value.
Expand All @@ -367,7 +367,7 @@ More complex is this:
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
page.10 {
page.10.if {
value = 10
isGreaterThan = 11
isTrue.field = header
Expand Down

0 comments on commit 0afd7c2

Please sign in to comment.