IgorVersion_Function
IgorVersion ()
The IgorVersion function returns version number of the Igor application as a floating point number. Igor Pro 8.00 returns 8.00, as does Igor Pro 8.00A.
Details
You can use IgorVersion in conditionally compile code expressions, which can be used to omit calls to new Igor features or to provide backwards compatibility code.
#if (IgorVersion() >= 8.00)
[Code that compiles only on Igor Pro 8.00 or later]
#else
[Code that compiles only on earlier versions of Igor]
#endif
If at all possible, it is better to require your users to use a later version of Igor rather than writing conditional code. Attempting this kind of backward-compatibility multiplies your testing requirements and the chances for bugs.