• MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Quote:

    Cool_amigaN wrote:
    With IF EXISTS, to my understanding, you need to specify a certain path (whereas the file could have been installed anywhere on sys:). So, I need a structure that will correspond to: "If search finds the file, then execute curl".


    The Search command returns a status code (0 if file found, 5 (or WARN) otherwise) that you can test for with If, like this:

    If NOT WARN
    ...


    - CISC
  • »24.11.15 - 18:37
    Profile