lewiaa
|
  |
| Joined: 17 Sep 2011 |
| Total Posts: 355 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 10 Dec 2016 02:10 PM |
http://wiki.roblox.com/index.php?title=Operator
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 10 Dec 2016 02:11 PM |
not equal to
x ~= y will return true if x is not equal to y, else it'll return false
if 3 ~= 4 then print("3 is not equal to 4") end |
|
|
| Report Abuse |
|
|
lewiaa
|
  |
| Joined: 17 Sep 2011 |
| Total Posts: 355 |
|
|
| 10 Dec 2016 02:11 PM |
| i thought so just wasnt sure |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 10 Dec 2016 02:14 PM |
alternatively, you can also do this for booleans.
if not (x == y) then
|
|
|
| Report Abuse |
|
|
XCVlll
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 963 |
|
|
| 10 Dec 2016 02:19 PM |
| i like using not but that can be more confusing logic wise if you're not thinking right |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 10 Dec 2016 02:24 PM |
Not doesn't make the logic confusing lol.
|
|
|
| Report Abuse |
|
|