Click here to Skip to main content
12,950,268 members (67,346 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I'm developing something akin to an ad-hoc query interface, and in this UI, the user is allowed to select AND or OR to add more conditions to the query.

What would you call this column? I'm using "Continuation", but I'm interested in finding a better 9and possibly shorter) word to use in its place. I can't use "operator" because I'm already using that for the various equality operators.

It has to be something that would be understandable by a non-programmer end user.
Posted 2-Jul-12 10:34am
Updated 2-Jul-12 10:35am
Wes Aday 2-Jul-12 16:48pm
The "condition" is regarded as the entire phrase, but nice try. :)
Now, let me understand this better.
You have a tree. Nodes are "operators", OK, arcs of the tree are "operands", and the whole thing is an "expression tree", which represents some "condition". What do you need to name: and operator, operand or the whole tree?

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

As you understand, what you do is essentially some expression tree expressed in terms of application data, most likely probably also a tree. As I understand, you are using it in the SQL WHERE clause (or anything else?), but it does not give me an idea of the term. I think you should based it on the idea of the expression tree. A one-word term? Maybe, just "Expression" or "Expression" :-).

By the way, it would nice and very usable also to present this user's data as a visual tree-like representation, which would make the word "tree" redundant, and the word "Expression" less confusing.

Well, just one idea for now…

Vitaly Tomilov 2-Jul-12 19:10pm
Word 'Expression' does not signify an action, and I believe he needs a word that's in itself is an action ;) I offered a few below ;) Perhaps FILTER is the most pertinent in this case ;)
It is not supposed to signify an action. This is the user-modifiable data structure. Expression is actually the closest; the issue is to be explanatory.
Filter I don't understand -- is it just because it could be understood as both noun and a verb (to filter)?
Vitaly Tomilov 2-Jul-12 20:14pm
Well, he is asking for a word that best suits a column that contains AND and OR statements for the selection - isn't that a filter?
Espen Harlinn 3-Jul-12 16:21pm
Oh, you mean a filter expression ;)
Espen Harlinn 3-Jul-12 16:22pm
Well, thank you, Espen, but you see, this seems controversial. Perhaps you need more detail from John to give him better idea.
Espen Harlinn 4-Jul-12 3:49am
That usually helps :-D
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

AND + OR are generally used along with WHERE statement, so here's your clue ;)
Otherwise, you can call it a FILTER, because that's what it is, essentially ;)
Either way, it is a CONDITION, in a good sense though ;)

So pick one you like ;)
Espen Harlinn 3-Jul-12 16:22pm
Fair enough :-D
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

From the top of my head:

  • Association

  • Separator

  • Combiner

You might even consider calling the equality operators the "association" and the "and"/"or" the "operator". I'm thinking it would be more intuitive to say the association between inputs is that the are "equal"/"not equal"/"containing" and the operator between associations are "and"/"or".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,829
CHill60 3,460
Maciej Los 2,953
Jochen Arndt 1,975
ppolymorphe 1,820

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 2 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100