@duckduckgo/content-scope-scripts
    Preparing search index...

    A conditional branch of a click action: when condition evaluates true, elements are clicked.

    interface Choice {
        condition: { left: string; operation: string; right: string };
        elements: ClickElement[];
    }
    Index

    Properties

    Properties

    condition: { left: string; operation: string; right: string }

    Type Declaration

    • left: string

      left operand; may contain ${field} templates resolved from the data

    • operation: string

      comparison operator: =, ==, ===, !=, !==, <, <=, >, >=

    • right: string

      right operand; may contain ${field} templates resolved from the data

    elements: ClickElement[]