Campbell Ritchie wrote:. . . Explain what each combination is supposed to mean. . . . .
That is a computing term which presumes I know more about your app than I actually do. It is also an implementation detail which obscures the intent of the app with how you intend to do it.
Nathan Milota wrote:. . . radio button . . .
Exactly. There are ways to filter by multiple attributes; I can think of two “just like that.” Neither would use multiple if‑elses, nor a switch‑case.
Miroslav Lehotsky wrote:. . . you don't care about false values/not chosen filters/attributes as you simply don't filter by them. . . .
You can reduce that to a switchStill low‑level. You can improve its style by writing the numbers in hex or binary. This style would be even better:-But it is still low‑level code, and will probably lead to a great deal of code repetition.
Les Morgan wrote:. . .. . . .
That is where a proper explanation of what you are going to do will help.
Nathan Milota wrote:I think I was just thinking about this all wrong. . . .
a ∧ b ⇒ b ∧ a
Piet Souris wrote:. . . prove or disprove.
Campbell Ritchie wrote:a ∧ b ⇒ b ∧ a
a ∧ b ⇒ b ∧ a DED (4) QED
Yes, I had forgotten the proper names.
Junilu Lacar wrote:. . . the commutative property though, not associative. . . .