Skip to content

Porblem with parsing multiple or, and logical operators #126

@svitrol

Description

@svitrol

Description

Right so I wanted to chain multiple Or and And operators it works when I swith them but shows error when using only one kind.
(a<b) && (a<5) && (b<10) not okay
(a<b) && (a<5) || (b<10) okay

Steps to Reproduce

  1. https://cortexjs.io/mathlive/demo/
  2. insert \left(0<b\right)\land\left(a<b\right)\land\left(a<-1\right)

obrazek
4. insert \left(0<b\right)\land\left(a<b\right)\lor\left(a<-1\right)
5.
obrazek
6. insert \left(0<b\right)\lor\left(a<b\right)\lor\left(a<-1\right)
7.
obrazek
8. Try to solve it with parenthesis does not help insert \left(0<b\right)\lor\left(\left(a<b\right)\lor\left(a<-1\right)\right)
9.
obrazek

Actual Behavior

From the steps above you can see when parsing multiple And and Or operators I get 'unexpcted-argument'.

Expected Behavior

Chaining multiple And statements and Or statements should be possible.

Environment

MathLive version If using the cortexjs.io site, the version is displayed
at the bottom of the page. If using the library, the version is available as
MathfieldElement.version

From the bottom of the site.
MathLive version
0.95.5

Updated
September 22, 2023

Operating System macOS, Windows, iOS. Include the version
OS Win11

Browser Safari, Chrome, Edge, Firefox, etc... Try several browsers and note
if there are differences between browsers.

Tried several browsers does not have an impact on the result.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions