Computer Science Canada Error: Bad operand types for binary opperator |
Author: | chalcids [ Wed Jan 23, 2013 9:23 am ] |
Post subject: | 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 |
Author: | DemonWasp [ Wed Jan 23, 2013 9:37 am ] | ||||
Post subject: | 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:
when it should be:
But, I can't be sure without seeing your existing code, or knowing what you were trying to do at the time. |