-misterX- Posted January 15, 2013 Posted January 15, 2013 in a function how do i write 'if not' cause i always used if an element is = to another then do this this and this but how do i create a condition with false
Castillo Posted January 15, 2013 Posted January 15, 2013 function test ( boolean ) if ( boolean ) then -- If 'boolean' is not false or nil. outputChatBox ( "Hello World!" ) else -- If boolean is false or nil. outputChatBox ( "Bye cruel World!" ) end end test ( true ) test ( false ) Is that what you meant?
-misterX- Posted January 15, 2013 Author Posted January 15, 2013 no i mean just how to write if not, i saw is some script ' ~= ' is it correct?
-misterX- Posted January 15, 2013 Author Posted January 15, 2013 sorry i could have explaind you better, my bad! thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now