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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: 'if' statements

Previous Thread :: Next Thread 
FreeGamesROBLOX is not online. FreeGamesROBLOX
Joined: 15 Jun 2011
Total Posts: 6622
21 Feb 2012 06:55 PM
Okay, I know how to do:
if x.Transparency == 0.5 then

but if I want to check if something ISN'T true,
would it be !=, like in javascript?
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
21 Feb 2012 06:57 PM
Its not !=, its ~=

`*\~-{ Are we there yet T.T? }-~/*`
Report Abuse
MetroidSlayer is not online. MetroidSlayer
Joined: 14 Dec 2009
Total Posts: 845
21 Feb 2012 06:57 PM
to do a Not True statement, you do ~= [symbolizing the slash on the equals sign in math]
Report Abuse
FreeGamesROBLOX is not online. FreeGamesROBLOX
Joined: 15 Jun 2011
Total Posts: 6622
21 Feb 2012 06:58 PM
Similar.
I was just thinking it was !=, because javascript is REALLY similar to lua.
Report Abuse
MetroidSlayer is not online. MetroidSlayer
Joined: 14 Dec 2009
Total Posts: 845
21 Feb 2012 07:00 PM
All scripting languages are similar. Just like all programming languages are similar. Just like Programming languages and scripting languages are similar.
Report Abuse
FreeGamesROBLOX is not online. FreeGamesROBLOX
Joined: 15 Jun 2011
Total Posts: 6622
21 Feb 2012 07:01 PM
@Metroid
Take CSS, HTML, and lua
How are those similar...?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
21 Feb 2012 07:20 PM
You can use ~=, or the "not" operator.

    if not x.Transparency == 0.5 then

It's similar to the JavaScript !:

if !(x.Transparency == 0.5) {}
Report Abuse
XNoBoomX is not online. XNoBoomX
Joined: 08 May 2011
Total Posts: 4731
21 Feb 2012 07:21 PM
HTML = Markup Language.

It's more considering coding on average. It seems that web-based "scripting" or "programming" is really more slang-termed as "coding".

Just to let you know.

~Fo Dah' Wimminz!~
Report Abuse
MetroidSlayer is not online. MetroidSlayer
Joined: 14 Dec 2009
Total Posts: 845
21 Feb 2012 07:24 PM
Thank you NoBoom for clarifying that to people

~Join Enigma Scripting School for Lessons ^.^ ~
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