INSPECT
Returns a text containing the representation of a value.
The returned text is what you would have to write in a command to get that value.
Usage
Parameters
value |
(Required) The value to inspect |
Examples
More information
This function is helpful mostly to see the result of an operation in a way that keeps information about the type of the value (because texts get wrapped in quotes while numbers don’t).
Clarification: in a text, to represent a single quote character ("
), you write 2 consecutive
ones.
Note: The results in the examples here may appear to have too many quotes. This is normal.
The results shown in function’s examples always use INSPECT
to highlight texts vs. numbers
(by having quotes or not). So the results here effectively use INSPECT
twice. Use INSPECT
in the sandbox or a document to clarify the result.
INSPECT
can handle lists, which TEXT
cannot.