Well it turns out i was using it correctly and i still can't get it to work.
<img src="http://www.fishertextiles.com/test.jpg" border="0" />
Basically i'm trying to test for 2 blue blocks in a row and place a red block on top of one of them if the condition is true.