@versionnum=<channel> replies with the supported RLV protocol version as a plain number, which is easy to compare in a script: major*1000000 + minor*10000 + patch*100 + build. For RLVa 2.4.2 this is:

@versionnum        -> 3040300   (protocol 3.4.3.0)
@versionnum:impl   -> 2040213   (RLVa 2.4.2, implementation id 13)

Syntax

@versionnum=<channel>
@versionnum:impl=<channel>

Parameters

channel
Positive chat channel on which the viewer answers.

Caveats

How replies are delivered (all reply commands)

Examples

listen(integer c, string n, key id, string msg)
{
    integer v = (integer)msg;
    if (v >= 2090000) llOwnerSay("RLV API 2.9 or newer");
}

See also

Implementation notes

Comparison with RLV

This command works differently from RLV's @versionnum; see the comparison.