M
M
MrDeadToast2014-10-28 23:29:36
Programming
MrDeadToast, 2014-10-28 23:29:36

How to negate a boolean variable in LUA?

C languages ​​negate a boolean variable with an exclamation point (For example: BoolVAR = !BoolVAR), is it possible to do the same in LUA?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Lerg, 2014-10-28
@Lerg

There is not for negation in Lua.
And by the way, it is not written LUA, but Lua. This is not an abbreviation.

D
Don Kaban, 2014-11-01
@donkaban

local val = true
print tostring(val)
print tostring(not val)

L
lordekar, 2015-01-16
@lordekar

Can

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question