%false() returns 0 (not false), %true() returns 1 (not true)

0 votes
asked Jun 10, 2019 in Bug by boshka (3,940 points)

Looks the 2 built-in functions %true() and %false() return NOT per http://plantuml.com/ru/preprocessing

is that a bug?

1 Answer

+1 vote
answered Jun 11, 2019 by plantuml (295,000 points)
We must state more clearly in the documentation that we follow C/PHP convention here.

So there are no real boolean type.

0 means false and any non-null number (1) means true.

We will update the documentation.
...