3,217
edits
Changes
m
no edit summary
"Version checking" (available in WPKG 0.9.6 and later) added five new 'conditions' to the 'file' test:
* versionsmallerthan (true if the file version is smaller than the version given in the 'value' argument)
* versionlessorequal (true if the file version is equal to or is smaller than the version given in the 'value' argument)
* versionequalto (true if the file versions are the same)
* versiongreaterorequal (true if the file version is larger than or equal to the version given in the 'value' argument)
* versiongreaterthan (true if the file version is larger than the version given in the 'value' argument)
All tests return 'false' if the file does not exist or the version could not be found.
TODO: Some examples, anyone?
[[category:Documentation]]
* versionsmallerthan (true if the file version is smaller than the version given in the 'value' argument)
* versionlessorequal (true if the file version is equal to or is smaller than the version given in the 'value' argument)
* versionequalto (true if the file versions are the same)
* versiongreaterorequal (true if the file version is larger than or equal to the version given in the 'value' argument)
* versiongreaterthan (true if the file version is larger than the version given in the 'value' argument)
All tests return 'false' if the file does not exist or the version could not be found.
TODO: Some examples, anyone?
[[category:Documentation]]