$string

Casts a variable to a string
Usage
$string(<data>)
Description
Forces <data> to be a string data type with the following semantics:
        
  • If <data> is a string then <data> itself is returned.
  •     
  • If <data> is an integer then its decimal representation is returned.
  •     
  • If <data> is a real then its decimal floating-point representation is returned.
  •     
  • If <data> is a boolean then the string "1" is returned for a true value and the string "0" for a false value.
  •     
  • If <data> is nothing (unset) then an empty string is returned
  •     
  • If <data> is an array then a string with all the items converted to strings and separated by commas is returned
  •     
  • If <data> is a hash then a string with all the values converted to strings and separated by commas is returned
  •     
  • If <data> is a hobject then the string "object" is returned
Note that since KVIrc does most of the casting work automatically you shouldn't need to use this function.
Syntax Specification
<integer> $string(<data:variant>)
See also
$real $integer

Index, Functions
KVIrc 4.2.0.6190 Documentation
Generated by builduser at Thu May 18 22:40:02 2017