Get the Iguana version number

Verified
Added by iNTERFACEWARE

Use iguana.version() to get the Iguana version number, can be useful for testing for a required/supported version

Source Code
   -- get the version number for Iguana
   local v = iguana.version()
   
   -- test for a required version
   if v.major < 5 or(v.major == 5 and v.minor < 6 and v.build < 2) then
      error('This module requires Iguana 5.5.2 or above')
   end
Description
Use iguana.version() to get the Iguana version number, can be useful for testing for a required/supported version
Usage Details

Use iguana.version() to get the Iguana version number. This can be useful for testing for a required/supported version. In the sample code we show a test that could be placed in a module that requires version 5.5.2 or greater (it could require a builtin function that was added in 5.5.2).

How to use the snippet:

  • Paste the code into your script