Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

ATL Provider Error ATL2031

Error Message

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]
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.