$WBLEFT - left substring

Availability
$WBLEFT  is available for use with all WBSP commands:

Syntax
$WBLEFT{sourcetext|length}
$WBLEFT[sourcetext|length]

Parameters
sourcetext - text from which the leftmost characters are returned
length - numeric parameter indicating how many characters to return

Returns
Text containing a specified number (length) of characters from the left side of sourcetext.

Example

<!--
[FormFields]
wb_command=r
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBLEFT example</title>
</head>
<body>
First 17 characters of sentence The rain in Spain stays mainly in plains are:<br>
$WBLEFT[The rain in Spain stays mainly in plains.|17]
</body>
</html>

After running this example, the resulting page in browser, may look like this:

First 17 characters of sentence The rain in Spain stays mainly in plains are:
The rain in Spain