I am having problems getting the following IF EXISTS to work within my Site.cfg file. Essentially, the TEMPLATE.ITL should reside within each project and for the most part does. For a few, I want OpenRoads to open a "readonly" SITE level template.
During testing, TEMPLATE.ITL does existing within the project begining tested, however the first IF EXISTS fails and loads the first ELSE. Please let me know what is missing.
_CITY_Template=$(_CITY_PROJECTS)/$(_USTN_PROJECTNAME)/Design/GEOPAK/
%if exists ($(_CITY_Template)Templates.itl)
CIVIL_ROADWAY_TEMPLATE_LIBRARY = $(_CITY_Template)Templates.itl
%else
CIVIL_ROADWAY_TEMPLATE_LIBRARY = $(_City_OpenRoads)template_library/Templates.itl
%else
%error Unable to find $(_CITY_Template)Templates.itl
%endif