diff --git a/README.org b/README.org index 5f293fa..07983ee 100644 --- a/README.org +++ b/README.org @@ -180,11 +180,14 @@ final String result = Value.where(isTrue(), () -> TRUE, () -> FALSE); + final String result = Value.where(Condition.where(isTrue), () -> TRUE, () -> FALSE); + final Optional result = Value.where(isTrue(), () -> TRUE); final String result = Value.where(isTrue()) - .then(() -> TRUE) - .otherwise(() -> FALSE); + .not() + .then(() -> FALSE) + .otherwise(() -> TRUE); #+END_SRC