|
| 28 Sep 2017 12:47 PM |
example: local canClick = true return canClick false is it possible to do something like that |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
| |
|
|
| 28 Sep 2017 12:49 PM |
| i mean in the example its vice versa but it the same thing im trying to get across |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2017 12:54 PM |
| whats wrong with me i meant to say in the example its the opposite kind of |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2017 12:54 PM |
local a = true print( not a ) > false
so I guess what you mean is: return not canClick |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Sep 2017 12:57 PM |
No problem, you can also do: return canClick == false |
|
|
| Report Abuse |
|
|
Kekulator
|
  |
| Joined: 20 Jul 2011 |
| Total Posts: 1833 |
|
|
| 28 Sep 2017 01:01 PM |
Plenty of ways
return canClick == false
return not canClick
return canClick ~= true |
|
|
| Report Abuse |
|
|