generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: 'then' expected near '='

Previous Thread :: Next Thread 
ObnoxiousDrummerBoy is not online. ObnoxiousDrummerBoy
Joined: 20 Sep 2011
Total Posts: 93
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 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
21 Sep 2011 09:41 PM
take out the forward slash.
Report Abuse
SDuke524 is not online. 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
ObnoxiousDrummerBoy is not online. ObnoxiousDrummerBoy
Joined: 20 Sep 2011
Total Posts: 93
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 is not online. 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
ObnoxiousDrummerBoy is not online. ObnoxiousDrummerBoy
Joined: 20 Sep 2011
Total Posts: 93
21 Sep 2011 09:45 PM
*faicdesk*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image