Default evaluation for conditions?

While hooking up disambiguation=“true” in citeproc-js, I’ve run into a
question about conditionals.

For reasons specific to the implementation, I need to set a default
evaluation function (all | any | none) to get the condition to take
effect. Could be either “all” or “any”, I guess, but I wasn’t sure
which. I checked csl.rnc, and it doesn’t say, so I looked a little
farther afield, and found the CSL syntax description at
http://www.zotero.org/support/dev/csl_syntax_summary, which says the
following:

match - this allows and/or/not like behaviour by setting against
all/any/none. This is required if you test multiple types or variables
too.

Looking at csl.rnc, I can’t see anything that imposes that
requirement. Unless I’m missing something, the following should
validate:

Not sure what it means, though. Should the default be match=“all” or
match=“any”?

Frank

Simon and I had this discussion on the list when we designed the
conditional, and it’s a shame it’s not documented in the schema; we
need to change that.

I believe default is “any” but it’s been a long time. Andrea, is that
your understanding? How does it work in Zotero currently?

Bruce

PS - I’m in general swamped for the next two/three weeks with
manuscript deadlines (already past due) and the end-of-term. So I
likely won’t respond to emails that require me spend more than two
minutes in total :slight_smile:

Not sure what it means, though. Should the default be match=“all” or
match=“any”?

I believe default is “any” but it’s been a long time. Andrea, is that
your understanding? How does it work in Zotero currently?

In my implementation the default should be “all” if I remember
correctly. I’m not sure but I remember I asked here. Anyway let me
know if you think “any” would be a better default.

PS - I’m in general swamped for the next two/three weeks with
manuscript deadlines (already past due) and the end-of-term. So I
likely won’t respond to emails that require me spend more than two
minutes in total :slight_smile:

Unfortunately I’m in a similar position. Sorry if sometimes I do not
answer quickly.

Andrea