Observations on preprocessing test of boolean expression [V1.2020.19]

0 votes
asked Oct 28, 2020 in Bug by The-Lu (31,620 points)

Hello PlantUML team,

From:

And after some preprocessing tests of boolean expression:

!$a=1 || 0
!$b=1||0
!$c=1 | 0
!$d=1|0  


[See on PlantUML server]

  • Why all the expressions does not return the same result?
  • Is it a bug or not?

 

Thanks for your support,
Regards,
Th.

1 Answer

0 votes
answered Dec 5, 2020 by The-Lu (31,620 points)
 
Best answer

Hello PlantUML team,

With the version V1.2020.20, this is fixed, with this error message :

!$c=1 | 0
^^^^^
 Parsing syntax error about |

or

!$c=1 & 0
^^^^^
 Parsing syntax error about &

Then old short form: `&`, `|` or `!` are only for old preprocessor.

And the new preprocessing support only `&&` and `||` or `%not()`.

The documentation has been updated accordingly:  See new ยงBoolean expression on Preprocessing page.

Thanks for yours works  yes,
Regards,
Th.

...