Mod API Reference:IsVersionOrHigher

WL.IsVersionOrHigher: A function that can be called to determine what version of the Warzone code is running. It takes a single argument, a string, that identifies what version to compare to, and returns a boolean.

Note that this function was only added in Warzone version 5.17, so if you need to support older versions than that, you should check that the IsVersionOrHigher function itself exists.

This should be used whenever you are using an API feature that says it was added in a specific version to verify that the feature is available. For example, if a feature says it was added in version 5.17, you could check like this:

 if (not WL.IsVersionOrHigher or not WL.IsVersionOrHigher("5.17")) then
     UI.Alert("You must update your app to the latest version to use this mod");
     return;
 end