drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 19 Jan 2016 10:11 PM |
So if I do
if object and object:FindFirstChild("stuff") then end
does it have an error if object is nil, or does it just skip the statement once it sees that object is nil? |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2016 10:13 PM |
As soon as it realizes there is no passing the argument it ends
if object tand object:FindFirstChild("stuff") then
Script reads it like this assuming object is nil
if object and, oh object is nil and there is no 'or'? Skip the to end of if statement.
end |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
| |
|