Configuraton %if (file exists)

This file does exists

$(_USTN_USER)$(USERNAME)/hbc.upf)

This:

%if exists ($(_USTN_USER)$(USERNAME)"/hbc.upf")
MS_UserPREFSEED =  ($(_USTN_USER)$(USERNAME)/hbc.upf)
%else
MS_UserPREFSEED = ($(_USTN_USER)/hbc.upf)
%endif

 

or this

%if exists ($(_USTN_USER)$(USERNAME)/hbc.upf)
MS_UserPREFSEED =  ($(_USTN_USER)$(USERNAME)/hbc.upf)
%else
MS_UserPREFSEED = ($(_USTN_USER)/hbc.upf)
%endif

 

$(_USTN_USER) = Q:\workspace\users\

$(USERNAME) = h1234

if  Q:\workspace\users\h1234\hbc.upf exists why does the if statements above not set MS_UserPREFSEED = Q:\workspace\users\h1234\hbc.upf

Any ideas would be appreciated?

 

 

Parents Reply Children
  • Tim,

    Thanks for your input. I was able to get the syntax working as expected. It helped to change one of the hbc.upf to hbc1.upf. I then search all my config files for MS_UserPREFSEED and made sure that it was set only in my site.cfg file. I change the syntax to the following:

    %if exists ($(_USTN_USER)$(USERNAME)/hbc1.upf)

    MS_UserPREFSEED =  $(_USTN_USER)$(USERNAME)/hbc1.upf

    %else

    MS_UserPREFSEED = $(_USTN_USER)/hbc.upf

    %endif

    I have been working on this issue when time permits for sometime. Thank you so much!

    Roland

    V8i SS4 v.08.11.09,829
    AECOsim BD V8i

     

    Answer Verified By: Roland