Tinderbox v9 Icon

The implication of square brackets in operator descriptions, regex, and literal strings

Potential confusion over the implication of [ ] characters in operator descriptions vs. other uses e.g. regex and literal strings

Operator Syntax. Square brackets [ ] are used when documenting the optional parts of operator syntax, but are not (normally) used when employing the operator in actual action code. Otherwise, except for special cases listed below, do not type square brackets when creating code. Thus the example of the indented(N[,"item"]) operator, if using both operators the code entered would be like indented(4,"Project X"), noting that absence of square brackets.

For special cases where square brackets are used in literal operator syntax see:

Therefore if square brackets appear in code syntax examples—as opposed to general syntax code example descriptions—it will imply one of the above uses.

Square brackets can of course occur in values within the code, include code examples for using operators:



A Tinderbox Reference File : Automating Tinderbox : Coding : Action Code : Action code operator terminology explained : Action Operator Arguments : The implication of square brackets in operator descriptions, regex, and literal strings