🎉 Tickety V3 has now been released! Read more →
PlaceholdersParsers

Stop Parser

The Stop Parser halts further placeholder processing when the provided condition evaluates to true.

The Stop Parser stops the rest of a message from being processed once a condition is met. Its companion, the Break Parser, replaces the output of a single tag and lets everything after it carry on.

Usage

To use the parser, insert the following syntax in your text:

{stop(condition):optional message}

  • You can also reference this parser using the alias: halt

Examples

  1. Validating input:
  • Input: {stop({args}!=10):You did not provide valid input.}
  • Output: You did not provide valid input.
  • Nothing after this tag is processed.
  1. Condition not met:
  • Input: {stop({args}!=10):You did not provide valid input.} Thanks, {member.displayName}.
  • Output: Thanks, NotDemo.

Notes

  • When the condition is false, processing continues and the message is not shown.
  • When the condition is true, the message is returned immediately and every later tag is ignored.
  • Leave the message empty to stop processing without showing anything.

Break Parser

The Break Parser forces the output of the current tag to be only its own message when the expression is true. If no message is given, the tag produces nothing. Unlike stop, the rest of the text still runs.

Usage

{break(expression):message}

Examples

  1. Replacing one tag:
  • Input: {break({args}==):You did not provide any input.}
  • Output: You did not provide any input.
  • Tags after this one are still processed.

Notes

  • Use break to override one tag's output while letting the rest of the message run.
  • Use stop when the whole message should end there.

On this page