Conditional Expressions
Future policy editors may include new capabilities. If these new capabilities
require revisions to the template file format, older versions of the System
Policy Editor will not be able to read the new template files. You can use
conditional expressions to ensure that any future template files you create will be
compatible with older policy editors.
The System Policy Editor supports two conditional expressions. The first one
allows you to include different parts of the template file, based on the version
number. This expression has the following syntax.
#if VERSION operator version_number
.
.
.
[
#else]
.
.
.
#endif
The
operator can be one of the following symbols: >, >=, <, <=, ==, or !=. The
version_number can be any integer; for Windows 95, the version number is 1.
The other conditional expression is
#ifdef. This expression has the following syntax.
[
#ifdef |
#ifndef]
keyword
.
.
.
[
#else]
.
.
.
#endif
Keywords are implicitly understood by the policy editor. For example, a
fictitious company named PolicyCorp might implement its own policy editor that could
recognize the POLICYCORP keyword. This company could use the
#ifdef and
#endif conditional expressions to make sure its template files can be recognized by
the Windows 95 System Policy Editor. (Because the Windows 95 System Policy
Editor does not currently recognize any keywords,
#ifdef always evaluates to FALSE and
#ifndef always evaluates to TRUE.)
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database