Documentation · ViewHelper reference

XSD schema file | vhs 2.1.3


  • Tag usage example

    <v:if then="[mixed]" else="[mixed]" stack="{foo: 'bar'}">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    {v:if(then: [mixed], else: [mixed], stack: {foo: 'bar'})}


Argument Description Type

Value to be returned if the condition if not met.


The stack to be evaluated


Value to be returned if the condition if met.

Required attribute

Revision history

commit 691c9f5935c95c43073ced1a6694f48f3a55c354
Author: Danilo Bürger <*****>
Date:   Thu Nov 21 23:29:41 2013 +0100

    [FEATURE] Added v:if, deprecating v:if.condition / v:if.condition.extend

commit 06b3c6867b2c46bf631a5db534f8c255b0bf5eaa
Author: Danilo Bürger <*****>
Date:   Sun Nov 24 16:35:18 2013 +0100

    [BUGFIX] V:if should respect operator precedence

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 12ff0ddfb8d36c51f2d3befde7ae812177c80d5d
Author: Xaver Maierhofer <*****>
Date:   Wed Jun 11 00:01:47 2014 +0200

    [TASK] CGL remove use leading backslash
    PHP Docs
    Note that for namespaced names (fully qualified namespace names containing namespace separator, such as Foo\Bar as opposed to global names that do not, such as FooBar),
    the leading backslash is unnecessary and not recommended, as import names must be fully qualified, and are not processed relative to the current namespace.

commit 4981055359c895f3869e5bd878293b3c15ed26e5
Author: Xaver Maierhofer <*****>
Date:   Sun Jan 18 14:01:04 2015 +0100

    [TASK] CGL - Define classes, params, use imports

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to file