Skip to content

subeval()

subeval(<string>)

Evaluates the % substitutions and \ escapes in <string> and nothing else. Function calls, braces, and everything between brackets stay as written, %l gives nothing, and spaces are not compressed. Use it with get() or v() to control when the text in an attribute is evaluated.

This function comes from TinyMUX.

> &TEXT me=%n says [add(1,2)]
> think subeval(v(TEXT))
One says [add(1,2)]

Output: %n became the name of the player who typed the command, and the function call stayed as text.

::: seealso