Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: If Condition

  1. #1
    Join Date
    Dec 2002
    Posts
    12

    If Condition

    COMMENT: Search specific location for myfile.exe
    Search For File (%FileSearchResult% = location of myfile.exe)
    COMMENT: If myfile.exe is not found
    IF (%FileSearchResult% = "NOT FOUND")
    COMMENT: DO THIS
    HTTP Download (http://mydomain.com/myfile.exe -> %TempDir%)
    Execute (%TempDir%\myfile.exe)
    ENDIF

    Do you find anything obviously wrong with the above if condition?

    Thanks, nt

  2. #2
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834

    Re: If Condition

    No, I can't see anything wrong from looking at it. What happens at runtime? The best method of debugging is using Message Boxes to display the contents of variables and place them inside loops to see if it makes it to certain points. Also make sure that you have set the error notification to "Verbose" for all of your actions so that if an error is thrown, you will see as much information as possible.
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

  3. #3
    Join Date
    Jan 2002
    Posts
    83

    Re: If Condition

    Yours:Search For File (%FileSearchResult% = location of myfile.exe)
    Suggested change:set the default value to say 5,
    suggested chagne:IF (%FileSearchResult% = 5)

    do the rest, it should work

    hope this is of some help

    dan

  4. #4
    Join Date
    Dec 2002
    Posts
    12

    Re: If Condition

    What is the logic with the number 5?

    Thanks for the feedback...nt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts