View Single Post
Old 04-11-2012, 07:46 PM   #1
Kevy Baby
Chowder Head
 
Kevy Baby's Avatar
 
Join Date: Jan 2005
Location: Yes
Posts: 18,500
Kevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of coolKevy Baby is the epitome of cool
A Question for the Programmers

While I have a lot more free time on my hands, I am helping a friend of mine who owns a small business. I am making some updates in his FileMaker Pro (FMP) database. I am not trained as a programmer and have very little experience, mostly just stumbling my way through.

I am reverse engineering some code that someone else used to repurpose for my use. However, I am running into challenges and there is one small bit that I don't understand (though I may be overthinking it).

I have put the (non-standard) FMP language in more understandable (hopefully) terms and I put some parts in (parenthesis). The part that has me stumped is the "EXIT LOOP IF [1 = 1]":

Code:
INSERT TEXT "1" (into field "ABC")

LOOP
    IF ABC = 1
        DUPLICATE RECORD
        INSERT TEXT "" (into field "ABC")
        EXIT LOOP IF [1 = 1]
    ELSE
        GO TO NEXT PORTAL ROW
    END IF
END LOOP

(Command to copy certain text)

LOOP
    IF ABC = 1
        INSERT TEXT "" (into field "ABC")
        EXIT LOOP IF [1 = 1]
    ELSE
        GO TO NEXT PORTAL ROW
    END IF
END LOOP
Wouldn't "EXIT LOOP IF [1 = 1]" mean just to exit the loop (since 1 will always equal 1!)? If so, what is the point of a loop?
__________________
The thing about quotes on the internet is that you cannot verify their validity.
- Abraham Lincoln
Kevy Baby is offline   Submit to Quotes Reply With Quote