$features Returns the features that KVIrc supports
Usage
<array> $features() <boolean> $features(<test_feature:string>)
Description

The parameterless form returns an array of feature description 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 true if and only if [test_feature] is available.

Examples
%myfeats[] = $features echo %myfeats[] %i = %myfeats[]# while(%i > 0) { %i--; echo "Supporting feature %myfeats[%i]" }
Nearly the same loop, just really shorter:
foreach(%f,$features) echo "Supporting feature %myfeats[%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