A newer version of Max is available. Click here to access the latest version of the documentation

tosymbol Reference

Convert messages, numbers, or lists to a single symbol

tosymbol

Description

tosymbol accepts any message, number, or list, and converts it into a single symbol. The symbol has a maximum length of 2048 characters.

Examples

Convert any input into a symbol

Arguments

None.

Attributes

separator [symbol]

Specifies the separator character or symbol to be used when concatenating. The message separator with no arguments removes all spaces when creating a symbol (e.g., 1 2 3 4 becomes 1234). When used with slash or colon separators, the separator attribute can be used to construct pathnames (e.g., ./patches myjunk myfile becomes ./patches/myjunk/myfile). The default separator is a space.

Common Box Attributes

Messages

bang

See the anything listing

int

Arguments

input [int]
See the anything listing

float

Arguments

input [float]
See the anything listing

list

Arguments

input [list]
See the anything listing

anything

Arguments

input-for-conversion [list]
The tosymbol object accepts any message, number, or list for an input, and sends a single symbol out its output. The symbol can have a maximum length of 2048 characters.

Output

symbol

A single symbol consisting of the concatenated messages, numbers, or lists. If the output symbol contains any spaces or special characters, it will be surrounded by double quotes.

See Also

Name Description
conformpath
fromsymbol
regexp
zl