version('1.1') # this package is version 1.1in package Foo. Then, in another package, you can do
package("Foo | { versionGE('1.0'); versionLT('2.0') OR version('3.0-beta') }")to select particular versions, or, similarly, on the command line
% pacman -get "Foo | { versionGE('1.0'); versionLT('2.0') OR version('3.0-beta') }"In the Pacman browsing functions, if you do -l -d versions or -lc -d version the versions of packages will be displayed.
If you want to test versions of software not in this list, a good option is to use shellOutput, shellOutputLE, etc.