# $features

Returns the features that KVIrc supports

Syntax

    $features
    $features(<test_feature>)

Description

The parameterless form returns an array of feature descripton strings that this KVIrc executable supports.
This function is useful when some part of your script depends on an optional KVIrc feature (like SSL support or IPV6 support).
The returned value may be assigned to a dictionary too: it will be used to simulate an array.
The form with the [test_feature] parameter returns 1 if and only if [test_feature] is available.

Examples

    %myfeats[] = $features
    echo %myfeats[]
    %i = %myfeats[]#
    while(%i > 0)
    {
        echo "Supporting feature %myfeats[%i]"
        %i--;
    }

You can test for a specific feature in the following way:

    if($features("SSL"))echo "Yes! SSL is available";

If used in "non-array" context it returns just a comma separated list of entries:

    echo $features

See also
$version

Index, Functions

KVIrc 3.2.0 Documentation
Generated by root at Thu Mar 9 08:43:54 2006