Substring

Overview

Returns the portion of the specified string starting with the specified character position and no longer than the specified length. If the specified character position exceeds the length of the specified string, the function returns an empty string.

Syntax

Substring(1, 2, 3)

Function Properties

Ordinal Type Description
1 string Required Initial string value
2 numeric Required Character position used to begin substring
3 numeric Maximum length of substring

Usage

%%=Substring('abcdef',2,2)=%%

System returns:

bc
Last Updated: Jun 8, 2021