#DEFINE StrangeDefine 'Mypath'+so you understand how it is supposed to work if defined.
#IFDEF StrangeDefine *anything here should not be compiled, because we never defined StrangeDefine #IF DIRECTORY(StrangeDefine '') &&Will be processed during compile #DEFINE SomethingElse *w/o next line compile will fail too, even if # IFDEF returns false #ENDIF #ENDIFI do not need help, I simply move the def of StrangeDefine around like
#IFDEF StrangeDefine #DEFINE StrangeDefine_found .T. #ELSE #DEFINE StrangeDefine_found .F. #DEFINE StrangeDefine #ENDIF *....... #IF StrangeDefine_found *now it is still not used but compiles #IF DIRECTORY(StrangeDefine '') THEN #DEFINE SomethingElse #ENDIF #ENDIF *....... #IF !StrangeDefine_found #UNDEF StrangeDefine #ENDIF #UNDEF StrangeDefine_foundLutz