Skip to content

Mark

control category: control-flow no `||` resultSize: 1

Declares a labelled jump target reachable by JumpIf, JumpIfNot, and JumpTo.

Mark is a no-op at runtime; it merely records its name as a position in the rule chain. When a Jump* rule fires, execution resumes at the matching Mark. Marks must be unique per chain, and every jump must reference an existing mark.

Parameters

1name Mandatory — accepts: STRING

A unique label within the rule chain. Other rules in the same chain (JumpIf, JumpIfNot, JumpTo) reference this name.

Input type

Output type

No output — Mark is a standalone label statement.

Requires

  • No pipeline input or output is allowed.

Examples

Declare two marks for a two-branch if/else

:visit_concept => JumpIfNot(9202, "Default") => :visit_concept
JumpTo("Done")
Mark("Default")
// default-branch logic
Mark("Done")

Errors

  • Mark: No named input or output are allowed
    A :field => Mark(...) form was attempted. Mark is a label only.
  • Mark accepts a single STRING that defines the mark
    Wrong number of parameters or non-string parameter.

See also

JumpIf, JumpIfNot, JumpTo