I use the .clientversion to test to see whether the player is using a pre-v5 client. In this instance it's to send a cliloc instead of normal SendSysMessage.
Code:
if ( CInt(character.clientversion[1, 1]) < 5 )
SendSysMessage(character, "Cancelled");
else
SendSysMessageCL(character, CL_CANCELLED);
endif
All I am doing is getting the client version string and finding the first character in the string, then turning it into an integer. In most cases all I want is to know if it's a v2 client, or a v4 client etc.
Alternatively, if you wanted to know the exact client version, skip all my string manipulation and just use:
var version := character.clientversion;
That might return a string like 5.0.9.1
If you want even more information, try .clientinfo which is client operating system information.
See the core-changes.txt for the information that returns.