check_datavyu_version()¶
- check_datavyu_version(minVersion, maxVersion)¶
Checks whether the current version of Datavyu meets the minimum and maximum requirements specified in the parameters.
Requires Datavyu 1.3.5 or greater.
Parameter
Type
Description
minVersion
String
Minimum version to check against; e.g. ‘v:1.3.5’
maxVersion
String (optional)
Maximum version to check against.
Returns
True if the current Datavyu version meets the specified requirements; false otherwise.
Example
Raise an error message unless the script is run on Datavyu version 1.3.5 or greater.
raise "This script will not work on the current version of Datavyu" if not check_datavyu_version('v:1.3.5')