$WBLEN - string length

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

Syntax
$WBLEN{sourcetext}
$WBLEN[sourcetext]

Parameters
sourcetext - text for which to count length

Returns
The number of characters in a sourcetext (length of the sourcetext)

Example

<!--
[FormFields]
wb_command=r
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBLEN example</title>
</head>
<body>
The sentence The rain in Spain stays mainly in plains<br>
has $WBLEN[The rain in Spain stays mainly in plains] characters.
</body>
</html>

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

The sentence The rain in Spain stays mainly in plains
has 40 characters