Tinderbox v8 Icon

version()


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Property   [other Property type actions]

 Document   [operators of similar scope]

 Data manipulation   [other Data manipulation operators]

 8.8.0

 


The action operator version() returns information about the version of Tinderbox. With no argument, is return a complete version string such as "8.7.2b472".

version("part") An optional single parameter can be supplied. Possible values are: major, minor, fix, and build, each returning a specific part of the overall version.

For example, in Tinderbox 8.7.2b472:

version() returns: 8.7.2b472 

version(major) returns: 8 

version(minor) returns: 7 

version(fix) returns: 2 

version(build) returns: b472 

These parameters may be used with or without enclosing quotes. Thus, usage:

$MyString = version(major);

or

$MyString = version("fix");