A VersionInfo is a structure that breaks the version string for kOS down into its component fields as numbers (rather than as a string) so you can look at them one at a time.

You obtain a VersionInfo by calling CORE:VERSION.

Structure

structure VersionInfo
Members

Suffix

Type

Get/Set

Description

MAJOR

Scalar

get only

The “NN” in the version string vNN.xx.xx.xx.

MINOR

Scalar

get only

The “NN” in the version string vxx.NN.xx.xx.

PATCH

Scalar

get only

The “NN” in the version string vxx.xx.NN.xx.

BUILD

Scalar

get only

The “NN” in the version string vxx.xx.xx.NN.

VersionInfo:MAJOR
Access

Get only

Type

Scalar.

The first number in the version string. i.e. the “NN” in the version string vNN.xx.xx.xx.

VersionInfo:MINOR
Access

Get only

Type

Scalar.

The second number in the version string. i.e. the “NN” in the version string vxx.NN.xx.xx.

VersionInfo:PATCH
Access

Get only

Type

Scalar.

The third number in the version string. i.e. the “NN” in the version string vxx.xx.NN.xx.

VersionInfo:BUILD
Access

Get only

Type

Scalar.

The fourth number in the version string. i.e. the “NN” in the version string vxx.xx.xx.NN.