I have only gotten used to writing Let syntax… I have to say I have never really been sure what it all means. I am hoping that asking these questions will make me understand and be clear. From the example show on this page, it seems that a Let function can have more than one parameter, but they must use the list notation surrounded by “[…]”. If it is one, you don’t need to, and can’t use the brackets, correct? I also have picked up that FileMaker can use semicolons or commas as the separator in the Let function and maybe even other functions, correct? I think I picked this up by accident. I will appreciate to hear any idea, opinion, input, or answers. Thanks.

It is quite simple if you de-structure the syntax:

Let (// function; functions that take arguments (almost all) always start with an open paren[// variable declaration section open delimiter; optional for a single assignment, mandatory for multiplesomeVar = someExpression ;// a combined variable declaration/assignment …someOtherVar = someOtherExpression// … optionally referencing previously declared variables// { ; any number of additional assignments }

] ;// closing delimiter; semicolon delimits declaration section from calculation section//

calculation section, optionally using any or all declared variables)// function's close parenSo what it all boils down to is just an ordinary calculation that is embedded into an environment where you can define variables to use in that calculation:

Let (

declare vars ;

calculate using vars

)

which helps you writing code that is more efficient (processing-wise) and productive (clear and self-documenting).