Documentation · ViewHelper reference

XSD schema file | vhs 1.8.0

If / Type / IsStringViewHelper

Condition: Type of value is string

Condition ViewHelper which renders the then child if type of provided value is string.

  • Tag usage example

    <v:if.type.isString then="[mixed]" else="[mixed]" value="[mixed]">
    	<!-- tag content - may be ignored! -->
    </v:if.type.isString>
  • Inline usage example

    {v:if.type.isString(then: [mixed], else: [mixed], value: [mixed])}

Arguments

Argument Description Type
else

Value to be returned if the condition if not met.

mixed
then

Value to be returned if the condition if met.

mixed
value mixed
Required attribute

Revision history