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

0 votes
asked Jun 10 in Bug by boshka (2,740 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 by plantuml (200,240 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.
...