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: ~nil help

Previous Thread :: Next Thread 
crookedcool5 is not online. crookedcool5
Joined: 25 Sep 2010
Total Posts: 273
30 Jan 2013 05:57 PM
WHy not just use nil. Why use ~nil????
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
30 Jan 2013 06:01 PM
What is ~nil, do you mean ~= nil?
Report Abuse
crookedcool5 is not online. crookedcool5
Joined: 25 Sep 2010
Total Posts: 273
30 Jan 2013 06:02 PM
yes.
Report Abuse
crookedcool5 is not online. crookedcool5
Joined: 25 Sep 2010
Total Posts: 273
30 Jan 2013 06:02 PM
Is ~ a variable?
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
30 Jan 2013 06:03 PM
Can you be more specific on what your question is, I honestly don't see what you are trying to point out.
Report Abuse
GraniteSphere is not online. GraniteSphere
Joined: 09 Aug 2012
Total Posts: 237
30 Jan 2013 06:03 PM
nil and not nil pritty much
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
30 Jan 2013 06:04 PM
~= means is not equal to (or you can use 'not value == nil')

== means equal to

http://wiki.roblox.com/index.php/Operator#Comparative

[ Content Trolled by Sorcus ]
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
30 Jan 2013 06:04 PM
No, ~ is part of the ~= logical operator.
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
30 Jan 2013 06:04 PM
Using the ~= operator is like saying "is not". For example,

print(1 == 1")
print(1 ~= 1)
> true
> false

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
crookedcool5 is not online. crookedcool5
Joined: 25 Sep 2010
Total Posts: 273
30 Jan 2013 06:04 PM
Ex: why not use
if nil = true then


but why you have to use
if ~=nil then
Report Abuse
Inordinatus is not online. Inordinatus
Joined: 24 Dec 2012
Total Posts: 155
30 Jan 2013 06:05 PM
"~=" is to check if something is _not_ equal to something.

A = 5

if A ~= 4 then
  print "A is not equal to 4."
end

>A is not equal to 4.

ιησя∂ιηαтυѕ
Report Abuse
crookedcool5 is not online. crookedcool5
Joined: 25 Sep 2010
Total Posts: 273
30 Jan 2013 06:05 PM
Okay Thanks you guys!
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
30 Jan 2013 06:07 PM
"if nil = true then" won't work either. You'd need to add another equals sign.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
crookedcool5 is not online. crookedcool5
Joined: 25 Sep 2010
Total Posts: 273
30 Jan 2013 06:10 PM
How did you get a wiki account?
Report Abuse
crookedcool5 is not online. crookedcool5
Joined: 25 Sep 2010
Total Posts: 273
30 Jan 2013 06:10 PM
if nil == true then
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
30 Jan 2013 06:12 PM
I taught myself how to script for ~3 years. Once I knew as much as I thought I could (which turned out to not be it all, of course) I applied through their site. I suggest you learn some more before applying.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
Inordinatus is not online. Inordinatus
Joined: 24 Dec 2012
Total Posts: 155
30 Jan 2013 06:18 PM
3 years, eh? I haven't even been scripting for a year. :l

ιησя∂ιηαтυѕ
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
30 Jan 2013 06:21 PM
Well, it all depends on how fast you learn. Most people probably don't take 3 years. And wiki writers aren't really that special, we just know how to script well and write Wiki articles :3

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
Inordinatus is not online. Inordinatus
Joined: 24 Dec 2012
Total Posts: 155
30 Jan 2013 06:25 PM
I'm not the type that can explain well, and I get impatient with people who don't learn fast enough for my taste.

ιησя∂ιηαтυѕ
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