Talk:Key:charge:conditional
Discussion on how to best use the tag
There is a discussion in the forum on how to best use charge:conditional related to entrance fees.--Rene78 (talk) 11:41, 6 December 2025 (UTC)
multiple charges selects last one
Conditional restrictions#Evaluation of conflicting restrictions say that "In case of multiple matching value-condition pairs in the same tag the last matching value becomes the effective restriction value." so something like charge:conditional=10 AUD / hour @ (Mo-Fr); 40 AUD / day @ (Mo-Fr), given the conditional is the same (Mo-Fr) it would only select the per day rate, but what I'm trying to say is that during Mo-Fr you can choose to pay either $10/hour or $40/day. Or to ensure compliance with the multiple matching rule from conditionals, should we use change:conditional=(10 AUD / hour; 40 AUD / day) @ (Mo-Fr)? This came up in discussion on 189294021 (achavi, OSMLab, FacilMap) --Aharvey (talk) Aharvey (talk) 09:49, 26 September 2026 (UTC)
- Yes, you have to bracket parts with semicolon to keep them together. I can't find older documentation yet, but
destination:*:conditional=*is currently listed. Conditional_restrictions#Destination_restriction_signage Kovposch (talk) 10:23, 26 September 2026 (UTC)- Well spotted! The evaluation logic for conditional restrictions is not well suited the
charge:conditional=*use case. This is why I'm working on this proposal: Proposal:Charge:conditional with nested conditions and sequences. I'd appreciate your feedback! Zschoche (talk) 14:08, 26 September 2026 (UTC)
- Well spotted! The evaluation logic for conditional restrictions is not well suited the