From WikiChip
Difference between revisions of "mirc/identifiers/$len"
(→Example) |
|||
Line 1: | Line 1: | ||
− | {{mirc title|$len Identifier}}'''$len(text)''' | + | {{mirc title|$len Identifier}}'''$len(text)''' returns the number of characters in the text |
== Synopsis == | == Synopsis == | ||
Line 9: | Line 9: | ||
== Paramters == | == Paramters == | ||
− | '''Text''' = | + | '''Text''' = The input string you want to know the lenght of |
== Properties == | == Properties == | ||
Line 18: | Line 18: | ||
<source lang="mIRC">//echo -a $len(ONE)</source> | <source lang="mIRC">//echo -a $len(ONE)</source> | ||
− | + | will return '''3''' | |
<source lang="mIRC">//echo -a $len(ONE TWO)</source> | <source lang="mIRC">//echo -a $len(ONE TWO)</source> | ||
− | + | will return '''7''' | |
− | |||
− | |||
− | |||
− | |||
== Compatibility == | == Compatibility == |
Revision as of 13:14, 12 June 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$len(text) returns the number of characters in the text
Synopsis
$len(text)
Paramters
Text = The input string you want to know the lenght of
Properties
None
Example
//echo -a $len(ONE)
will return 3
//echo -a $len(ONE TWO)
will return 7
Compatibility
Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.