Table of contents
TOC
Collapse the table of content
Expand the table of content

Expression.Constant

Owen Duncan|Last Updated: 4/19/2018

About

Returns a constant text literal from a value.

Expression.Constant(value as any) as text  

Arguments

ArgumentDescription
valueText literal value.

Examples

Expression.Constant(1) equals "1"

Expression.Constant(1 + 1) equals "2"

Expression.Constant(true) equals "true"

Expression.Constant("abc") equals """abc"""

Expression.Constant("#(tab)") equals """#(#)(tab)"""

Expression.Constant(#date(2011, 1, 1)) equals "#date(2011, 1, 1)"

Expression.Constant((x) => x) equals Error: Functions not supported

Expression.Constant({1, 2, 3}) equals Error: Lists not supported

Expression.Constant([a = 1 + 1]) equals Error: Records not supported

© 2018 Microsoft