User Tools

Site Tools


en:public:developer:template_system:tags:expression:pos

This is an old revision of the document!


Table of Contents

<#Pos>

Returns the index value of the first character in a specified substring that occurs in a given string. Pos returns the index of SubStr in S, beginning the search at Offset. Pos is case-sensitive. If SubStr is not found or Offset is invalid (greater than the length of Str or less than 1), then the result is 0.

Parameters

Name Mandatory Default Description
SubStr Yes The name of the variable
Str Yes If empty return the value of the variable “Name”, else initialize the value of the variable “Name”
Offset No 1 If no custom variable “Name” are defined, return the value of this parameter

Example

<#pos substr="abcd" str="abcdefgh">
en/public/developer/template_system/tags/expression/pos.1353511316.txt.gz · Last modified: 2012/11/21 19:21 by admin