Documentation · ViewHelper reference

XSD schema file | vhs 2.1.4

Condition / Type / IsInstanceOfViewHelper

Condition: Value is an instance of a class

Condition ViewHelper which renders the then child if provided value is an instance of provided class name.

  • Tag usage example

    <v:condition.type.isInstanceOf then="[mixed]" else="[mixed]" value="[mixed]" class="NULL">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    {v:condition.type.isInstanceOf(then: [mixed], else: [mixed], value: [mixed], class: 'NULL')}


Argument Description Type
class string

Value to be returned if the condition if not met.


Value to be returned if the condition if met.

value mixed
Required attribute

Revision history

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

    [TASK] Switch to namespaces

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

    [TASK] Reference Copyright to file