Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

BEGINS

Determines whether a string starts with the specified substring.

Syntax

Parameters

STR (required)
String to search.

WHAT (required)
Value of the string to search for within the value for STRING_VALUE.

Description

The BEGINS tag determines whether a string starts with the specified substring. The comparison is case-sensitive. For more information about variables, see the Sites Developer's Guide.

Error Numbers

The possible values of errno include:

Value
Description
1
Comparison is true.
0
Comparison is false.

Example

This example determines whether the value of the variable teststr begins with the string "hello". It displays "yes" if the comparison is true and "no" if the comparison is false:

See Also

ENDS

  Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.