This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : substr(data,start,length) | aTbRef Site Map |
substr(data,start,length) |
Operator Type: | Data manipulation |
Operator Scope of Action: | Item |
Extracts a substring of string. For example:
substr("test",0,1)
returns "t", while
substr("test",1,2)
returns "es". All arguments are evaluated; if the designated characters don't exist, an empty string is return.
Note that in expressions like
$Initial=substr($Name,0,1)
the value of $Name is not changed.
Up: Full Operator List | |
Previous: sqrt(argument) | Next: sum(group, value) |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]