﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10471	AND operator in MapCSS	naoliv	team	"Could we have some kind of AND operator in MapCSS?
We are trying to implement a test for `ford=yes` that is not tagged on a highway + waterway junction.

We have tried `way[highway] > node[ford=yes] and way[waterway] > node[ford=yes]` and a more complicated solution like

{{{
#!mapcss
node[ford?] { set: .ford_not_on_waterway; set: .ford_not_on_highway; }
way[waterway] > node[ford?] { unset: .ford_not_on_waterway; }
way[highway] > node[ford?] { unset: .ford_not_on_highway; }
node.ford_not_on_waterway, node.ford_not_on_highway {
throwWarning: tr(""ford should be on the node where highway and waterway intersect"");
}
}}}

but without success.
Is there any way to implement an AND?

JOSM:
{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-09-02 01:36:00
Last Changed Author: Don-vip
Revision: 7485
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-09-02 02:57:38 +0200 (Tue, 02 Sep 2014)
Last Changed Rev: 7485
}}}"	enhancement	closed	normal	14.09	Core validator		fixed	mapcss	lists@… simon04
