I this post I noticed the use of extra brackets. I always contain my declarations/definitions in a pair. I would like to know what this syntax is doing?

I this post I noticed the use of extra brackets. I always contain my declarations/definitions in a pair. I would like to know what this syntax is doing?

- 1 person found this helpful
Hi Chris,

Check out these two helming guides for more info,

FileMaker Pro 16 Help Substitute

The square brackets are required for both functions if you want to declare multiple variables in the Let function, or multiple substitutions in the Substitute function. In your particular example you do require these as you are declaring two variables in the Let and running 5 substitutions in the calculation.

Examples that would not require square brackets might be

Let (

Var = 1 + 2

;

Var )

and

**Substitute ( text ; "a" ; "A" )**does not need square brackets to workwhere as

**Substitute ( text ; [ "a" ; "A" ] ; [ "b" ; "B" ] )**does need them to workHope this gives you an idea of how it works

-- Orlando

Hi Chris,

Check out these two helming guides for more info,

FileMaker Pro 16 Help Let

FileMaker Pro 16 Help Substitute

The square brackets are required for both functions if you want to declare multiple variables in the Let function, or multiple substitutions in the Substitute function. In your particular example you do require these as you are declaring two variables in the Let and running 5 substitutions in the calculation.

Examples that would not require square brackets might be

Let (

Var = 1 + 2

;

Var )

and

Substitute ( text ; "a" ; "A" )does not need square brackets to workwhere as

Substitute ( text ; [ "a" ; "A" ] ; [ "b" ; "B" ] )does need them to workHope this gives you an idea of how it works

-- Orlando