Thread: Doh!
View Single Post
  #7 (permalink)  
Old Aug 30th, 2006, 08:42
ukgeoff ukgeoff is offline
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Doh!

Been away so only just got back to looking at your post. You may have fixed it by now but...
Code: Select all
if (r = 4 and c = 3)
In this code, you want '==' to make a comparison. A sigle'=' is an assignment. Also you might want to put brackets around each of the comparisons to make sure the 'and' is not taking precedence.
Reply With Quote