Project

Profile

Help

Bug #6519

closed

Confusing documentation for otherwise

Added by Norm Tovey-Walsh 5 months ago. Updated 8 days ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Documentation
Sprint/Milestone:
-
Start date:
2024-08-29
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:

Description

By way of a question on the. XML.com slack, on the page about otherwise we find:

The precedence of the operator is greater than arithmetic operators (so $n div $m otherwise 1 means $n div ($m otherwise 1)), but less than the "union" operator (so a/b/c otherwise 0 means (a/b/c) otherwise 0).

But there isn't an obvious use of the union operator there. Was that meant to be (a|b|c) otherwise 0?

Please register to edit this issue

Also available in: Atom PDF