#How do i make an if statement with the conditon that something does = nothing

1 messages · Page 1 of 1 (latest)

elder fox
#

So i want to do an if statement that cheks if a varibal doesnt = nothing, but my code wont worke and dosnt give me a error message

south vine
#
if variable then
-- do stuff
end
#

@elder fox

wanton mason
elder fox
#

yeah but that doesnt check if the varabel is empty

errant citrus
elder fox
#

so maby i wrote my question wrong but i have a text box and the text of the text box gets put into a string and i want to check if its empty

errant citrus
#

if that doesnt work then you can also check to see if its equal to nil

#

but either of those should work

elder fox
#

both time this comes out

stone trenchBOT
#

studio** You are now Level 1! **studio

errant citrus
#

remove not and do ~= instead

#

its a unrelated suggestion to how you are doing "not equal to"

elder fox
#

ok ty sm