Export (0) Print
Expand All
Expand Minimize

ATL Provider Error ATL2031

Failed to compile RGS. Syntax error: illegal else without matching if.

The RGS file contains a [!else] directive without a corresponding [!if].

The following sample RGS file generates ATL2031.

HKLM
{
 [!else]
 val testval = s 'testval'
 [!endif]
}

To resolve the error, add a [!if] directive:

HKLM
{
 [!ifexist(noncreatable]
 [!else]
 val testval = s 'testval'
 [!endif]
}

Community Additions

ADD
Show:
© 2015 Microsoft