|
| 21 Sep 2011 09:40 PM |
if w.BrickColor =/= "New Yeller" then
The above is the problem line. I know that the 'then' expected near '=' means I need double ='s instead of a single =, but I'm already using double ='s in a not equal to fashion. |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 21 Sep 2011 09:41 PM |
| take out the forward slash. |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 21 Sep 2011 09:42 PM |
if w.BrickColor == BrickColor.new("New Yeller") then
--you also forgot to make it a BrickColor value instead of just a string. |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2011 09:43 PM |
| @SDuke, yes, but I'm trying to make it not equal to, unless you can't do that in if/then. |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 21 Sep 2011 09:44 PM |
if w.BrickColor ~= BrickColor.new("New Yeller") then
or
if not(w.BrickColor == BrickColor.new("New Yeller")) then |
|
|
| Report Abuse |
|
|
| |
|