Comparison operators: true / false in the results column
A small addition that unlocks a lot of “is this the right choice?” calculations. CalNote now understands five comparison operators — >, <, >=, <=, and ==. The result column prints true or false, and the comparison respects everything CalNote already knows about units, currencies, and dates.
The five operators
Type any of them between two values and you get a boolean back:
Single = is still variable assignment — == is the comparison. The parser tells them apart, and the editor’s reassignment underline no longer triggers when you type a == b.
Different units? CalNote converts before comparing
Comparisons use the same compatibility rules as subtraction. Anything in the same category — distance, weight, time, data size, currency — gets normalized first:
Mixing categories that don’t make sense (5 km > 5 kg) shows the familiar ø error indicator instead of pretending the comparison is meaningful.
Compare dates directly
Two date literals, or a date and now, work the same way:
Useful for “is this still in the future?” checks, deadline reminders, or anchoring milestones in a longer board.
Store the boolean in a variable
Comparisons return a value, so they assign like anything else. Reference the result later in the board:
Float drift is handled too — 0.1 + 0.2 == 0.3 evaluates to true, even though those numbers don’t match exactly in IEEE 754.
A note on precedence
== and friends sit between assignment and arithmetic, so the natural reading wins:
No parentheses required for the common case.
Open app.calnote.eu and try 5 km > 100 m. Like every other CalNote feature, it works offline and never leaves your browser.