Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to use Boolean value AKA True and false? [closed]

Asked by 7 years ago
Edited 7 years ago

I been trying to make an expanding and de-expanding block but i dont know how to use Boolean value AKA True and False

2
this question doesnt make any sense QuantumToast 261 — 7y
0
I answered a similar question years ago. Here's the post in case you're interested: https://scriptinghelpers.org/questions/13929/what-is-an-if-not-statement#16972 It's about the ``not` operator, but it also talks about booleans. TheeDeathCaster 2368 — 7y
0
Also, please check the R wiki, as it may have the answer to your question, same w/ using the SH search engine: http://wiki.roblox.com/index.php?title=Boolean TheeDeathCaster 2368 — 7y

Closed as Non-Descriptive by BlueTaslem

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
gdunn2 54
7 years ago
--declare a bool like any other variable in roblox lua
bool = true
--can set it to true or false
bool = false
print(bool)--prints false since bool == false
--can also use in an if statment
if bool == false then
 --some code
end
Ad