I am trying to figure out a way to check two binary variables and return true if it matches an "binary rule".<br /><br />The binary rule is "00000#1#" where 0 must be 0, 1 must be 1, but # can be either.<br /><br />If I get input "00000111" it should return true. If I get input "00010010" it should return false, as it does not match the 0 must be 0 rule.<br /><br />A hack would be to manually type in all the # values and instead of comparing to the "binary rule", I just check for exact matches - but I figure I should ask if anyone here know how I may solve this more intelligently <img alt="" height="20">