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

tosymbol

Convert messages, numbers, or lists to a single symbol

Description

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

Arguments

None.

Messages

bang Performs the same function as anything.
int input-for-conversion [int]
Performs the same function as anything.
float input-for-conversion [float]
Performs the same function as anything.
list input-for-conversion [list]
Performs the same function as anything.
anything 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.

Attributes

Name Type g/s Description
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.

Information for box attributes common to all objects

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.

Examples

Convert any input into a symbol

See Also

Name Description
conformpath Convert paths of one pathtype and/or pathstyle to another
fromsymbol Transform a symbol into individual numbers/messages
regexp Use PERL-style regular expressions to process input
zl Multi-purpose list processing