# $version(5)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

$version - MicroEmacs version date-code

## SYNOPSIS

$version "YYYYMMDD"

## DESCRIPTION

$version is a system variable which is defined as the MicroEmacs build date code. This value is fixed at compile time and cannot be changed. The variable may be used in macros to identify incompatibility issues.

## EXAMPLE

Given a macro that only operates with a MicroEmacs executable built on or after 1st August 2001 then this macro should check that `$version` is not less than `20010801`. The check may be performed as follows:

    !if &les $version "20010801"
        ml-write "[Error: MicroEmacs executable is incompatible]"
        !abort
    !endif

## NOTES

This variable was introduced in 2001-08-01, evaluating this variable on an earlier version of MicroEmacs would return the string "`ERROR`" unless an environment variable $version has been defined. "`ERROR`" evaluates to `0` hence the test still operates correctly.

This variable is used in the macro file `me.emf` to check for any macro - executable incompatibility issues.

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>