|
contains, ContainsCase
| Format:
contains ( string, substring ) |
| Format:
ContainsCase ( string, substring ) |
Purpose:
Looks whether a substring is contained in a string.
The ContainsCase() function
works very similar but is not case sensitive.
Return Values:
Returns true if and only if string
contains the substring.
Example 1:
| heitml input: | resulting output:
|
| <? contains("Hello World","ello")> | true |
| <? contains("Hello World","xello")> | false |
Example 2:
heitml input:
<if contains("Helmut is a Wizard","Wiz")
> Helmut is a Wiz. <
else
> Helmut should use heitml. <\p>
Then he'd be a programming Wiz like Keith. <
/if>
| resulting output:
Helmut is a Wiz.
|
See Also:
index(), indexCase(), subst(), substall().
This page was dynamically generated by
heitml
© 1996-2009 H.E.I. All Rights Reserved
|