
-----------------------------------
chalcids
Wed Jan 23, 2013 9:23 am

Error: Bad operand types for binary opperator
-----------------------------------
i am having a problem with this error Error: Bad operand types for binary opperator '||' . I am trying to use an array to check the cards for like two of a kind or three of a kind, it is a video poker game

-----------------------------------
DemonWasp
Wed Jan 23, 2013 9:37 am

RE:Error: Bad operand types for binary opperator
-----------------------------------
Well, presumably one of the arguments was bad (not boolean, because || is a binary [two arguments] boolean operator).

I would guess that you did something like:
[code]if ( variable == 6 || 7 )[/code]
when it should be:
[code]if ( variable == 6 || variable == 7)[/code]

But, I can't be sure without seeing your existing code, or knowing what you were trying to do at the time.
