I learned about logical operators without If statements randomly by finding some complex scripts in the ToolBox. You can learn them faster and better in the DevForum, however, such as in the Resources → Community Tutorials category. Here are some threads I found:
Hey, I’ve realized most beginner scripters don’t learn this simple concept often. Logical Operators are a simple concept that you probably use a lot while using if statements. You probably didn’t know this, but you can use them outside of if statements.
Disclaimer : I am likely going to use some incorrect terminologies but you should get what I mean.
print(not true) -- false
That is probably one of the most known use. You could use that to make a close/open UI button with the not operator.
l…
EDIT I have rewritten the entire post to educate better on conditional statements in specifics.
When I started, I learned to script from tutorials, examining others’ scripts, and just simply practice. I didn’t know anything more than just making code like a language given to the computer. Now, I wanted to learn more about how the computer thinks (computer science). Therefore, I have updated this tutorial to be more technical, as I feel it is easier to understand.
I have additionally included te…
1 Like