Can you combine 'and' and 'or'?

+1 Evan Howell · April 30, 2015
Is it possible to have a it set up so (this test AND that test have to be true), OR (This test AND that test be true). So basically have these 2 requirements or those 2 requirements set up in a similar fashion that you showed?

Post a Reply

Replies

Oldest  Newest  Rating
+1 M .A.K · April 30, 2015
yes.

for exp:  ( x && y ) || ( a && b )

now either x and y OR a and b most be true => to make the outcome true.
+1 Evan Howell · April 30, 2015
Ok thanks!
  • 1

C++

107,324 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator