Chop Logic Core - v1.6.0
    Preparing search index...

    Function createOperator

    • Converts a given PropSymbol into its corresponding logical operator.

      • If the symbol represents a known logical operator glyph, returns the matching Operator enum.
      • If the symbol represents a variable, returns Operator.Var.
      • Throws an error if the symbol is neither a recognized operator nor a variable.

      Parameters

      • symbol: PropSymbol

        The PropSymbol to be converted into an Operator.

      Returns Operator

      The corresponding Operator enum value.

      If the symbol is not recognized as an operator or a variable.