Kevy Baby
04-11-2012, 07:46 PM
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]":
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?
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]":
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?