how can I use the below in a .cfg file% if $ (USERNAME) == "nvancaspel" || $ (USERNAME) == "bpunt" % if exists ($ (_ MS_CONFIG_HOORN_COF) Optimize_admin_CE.cfg) % include $ (_ MS_CONFIG_HOORN_COF) Optimize_admin_CE.cfg else % if exists ($ (_ MS_CONFIG_HOORN_COF) Optimize.cfg) % include $ (_ MS_CONFIG_HOORN_COF) Optimize.cfg % endif% endif
Your syntax is a bit off as you've got some spaces where you shouldn't have. Your'e also missing an %endif
Also be aware that the text comparisons are case sensitive. In the $(USERNAME) evaluation used in the first line the case of the usernames has to be an exact case match. bpunt, BPUNT, and Bpunt are all different.
%if $(USERNAME) == "nvancaspel" || $(USERNAME) == "bpunt" %if exists ($(_MS_CONFIG_HOORN_COF)Optimize_admin_CE.cfg) %include $(_MS_CONFIG_HOORN_COF)Optimize_admin_CE.cfg %else %if exists ($(_MS_CONFIG_HOORN_COF)Optimize.cfg) %include $(_MS_CONFIG_HOORN_COF)Optimize.cfg %endif %endif %endif
Rod WingSenior Systems Analyst