|
| 30 Jan 2013 05:57 PM |
| WHy not just use nil. Why use ~nil???? |
|
|
| Report Abuse |
|
|
|
| 30 Jan 2013 06:01 PM |
| What is ~nil, do you mean ~= nil? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 30 Jan 2013 06:03 PM |
| nil and not nil pritty much |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 30 Jan 2013 06:04 PM |
| No, ~ is part of the ~= logical operator. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 30 Jan 2013 06:10 PM |
| How did you get a wiki account? |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 30 Jan 2013 06:18 PM |
3 years, eh? I haven't even been scripting for a year. :l
ιησя∂ιηαтυѕ |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|