如何同时将 bool 变量设置为 true 和 false?

我一直在思考这个问题,不知道怎样做,或者它是否可能!

我试图得到输出:"true"

local a=true

if a==true then
    if a==false then
        print("true")
    else
        print("false")
    end
elseif a==false then
    if a==true then
        print("true")
    else
        print("false")
    end
end
点赞
用户15717054
用户15717054

一个布尔值可以是true或false,在这个例子中,如果想要输出"true",就需要改变a的值。

2021-08-23 13:19:35