-misterX- Posted January 15, 2013 Share 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 Link to comment
Castillo Posted January 15, 2013 Share 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? Link to comment
-misterX- Posted January 15, 2013 Author Share Posted January 15, 2013 no i mean just how to write if not, i saw is some script ' ~= ' is it correct? Link to comment
Castillo Posted January 15, 2013 Share Posted January 15, 2013 Ah, "~=" means not equal to. Link to comment
-misterX- Posted January 15, 2013 Author Share Posted January 15, 2013 sorry i could have explaind you better, my bad! thanks! Link to comment
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