Hello!
I am looking to check if something does not exist. To check if something exists, you can use FindFirstChild()
. What would be the inverse of that?
Thanks in advance!
-Mehdi
Hello!
I am looking to check if something does not exist. To check if something exists, you can use FindFirstChild()
. What would be the inverse of that?
Thanks in advance!
-Mehdi
You can just invert a result with the not
keyword:
if not workspace:FindFirstChild("Baseplate") then
print("no baseplate")
end
Thanks for your answer. Marking as solution!