- Let functions with only one variable declaration can be defined on one line
Let ( ~someVar = Table::fieldName ; If ( ~someVar = "Active"; True; False ) )
- Let functions with multiple variables include the opening parenthesis and bracket on the same line
Let ( [
good
Let ( [
bad
- Closing Let variable declarations end on their own line. This indicates the start of the result.
];
good
endOfFunction ) ];
bad
- Calculation scoped variables use camelCase and are identified by a preceding variable indicator of "var."
This makes it easy to distinguish calculation variables from custom function arguments, $variables, and Table::fieldNames~someVariable
good
someVariable
bad
- Use present tense verbs or adjectives to indicate Boolean variable status on both calculation and locally scoped variables.
$hasReturns ~isTrailing $containsSpaces not ~containsEmailAddress