Skip to main content

Expression.Identifier

Returns the M source code representation of an identifier.

Syntax

Expression.Identifier(
name as text
) as text

Remarks

Returns the M source code representation of an identifier name.

Examples

Example #1

Get the M source code representation of an identifier.

Expression.Identifier("MyIdentifier")

Result:

"MyIdentifier"

Example #2

Get the M source code representation of an identifier that contains a space.

Expression.Identifier("My Identifier")

Result:

"#""My Identifier"""

Category

Expression