From WikiChip
Difference between revisions of "mirc/identifiers/$len"
< mirc‎ | identifiers

(See Also)
(Example)
Line 20: Line 20:
 
It will return '''3''' because it's the correct length of the text.
 
It will return '''3''' because it's the correct length of the text.
  
<source lang="mIRC">//echo -a $islower(ONE TWO)</source>
+
<source lang="mIRC">//echo -a $len(ONE TWO)</source>
  
 
It will return '''7''' because it is counting all the text ASCII characters as the total legth of the text.
 
It will return '''7''' because it is counting all the text ASCII characters as the total legth of the text.

Revision as of 09:18, 12 June 2017


$len(text) Returns the length of text.

Synopsis

$len(text)

Paramters

Text = Will be the given text that you want to use for.

Properties

None

Example

//echo -a $len(ONE)

It will return 3 because it's the correct length of the text.

//echo -a $len(ONE TWO)

It will return 7 because it is counting all the text ASCII characters as the total legth of the text.

//echo -a $len(12345)

It will return 5 because it can count and numbers included the text as the length of the text.

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.


See Also