Code | Quality |
---|---|
"foo" & $bar | good |
myFunction &$$globalVariable | bad |
"Modified by: "
& Get ( AccountName )
& " - " & Get ( CurrentTimeStamp )
Is more readable than:
"Modified by: " & Get ( AccountName ) & " - " & Get ( CurrentTimeStamp )
The following:
Get ( AccountName ) &¶
& Get ( CurrentTimeStamp )
is preferred over.
Get ( AccountName ) &¶& Get ( CurrentTimeStamp )
Where this is also highly readable and suggested.
Get ( AccountName )
&¶&
Get ( CurrentTimeStamp )
When using multiple pilcrows, spaces are highly suggested.
Code | Result |
---|---|
& "¶¶" & | good |
&"¶¶"& | bad |
No quotes for a single pilcrow?
Historically, Claris/FileMaker always required the use of double quotes around a single ¶ (pilcrow) character. But, it is possible to use a single ¶ without them. However, as soon as more than one ¶ is used, quotes are required.