Formula Language : Using a name of variable that have the same name of a field

I have a question about names of variable in Formula Language ?

If I use a variable (in formula language) that have the same name of a field in a document is that cause a problem ?

Subject: Formula Language : Using a name of variable that have the same name of a field

No

Subject: RE: Formula Language : Using a name of variable that have the same name of a field

In fact I used an example in a computed value that use a name of field as a name of variable (it display me an error that disappear when i change the name of variable)

Subject: RE: Formula Language : Using a name of variable that have the same name of a field

um, what’s the error?

Subject: RE: Formula Language : Using a name of variable that have the same name of a field

Variables and fields are in the same “namespace” in Formula Language – if the name of a variable happens to be the name of a field, then the field may be used as the source of data when reading. Assignment to a variable should be unambiguous since you’d need to use the FIELD keyword or the @SetField function to assign values to a field.