<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=Bool</id>
	<title>Bool - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=Bool"/>
	<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Bool&amp;action=history"/>
	<updated>2026-07-28T17:05:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.starfall.wtf/index.php?title=Bool&amp;diff=481&amp;oldid=prev</id>
		<title>PRG: Created page with &quot;{{CatUp|Properties}}  == Introduction == A Bool, or Boolean Value is a &lt;b&gt;true&lt;/b&gt; or &lt;b&gt;false&lt;/b&gt; value. In Lua, either the value is &lt;b&gt;true&lt;/b&gt;, or it is &lt;b&gt;false&lt;/b&gt;/&lt;b&gt;nil&lt;/b&gt;. When trying to change this value in code, use a &lt;b&gt;true&lt;/b&gt; or a &lt;b&gt;false&lt;/b&gt; variable.  These variables show up as a checkbox in the Properties window. &lt;b&gt;True&lt;/b&gt; is a checked box, &lt;b&gt;false&lt;/b&gt; is an unchecked box.  == Examples == &lt;pre&gt; x = true print(x) Will result in: true  x = true print(...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Bool&amp;diff=481&amp;oldid=prev"/>
		<updated>2024-12-10T22:13:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{CatUp|Properties}}  == Introduction == A Bool, or Boolean Value is a &amp;lt;b&amp;gt;true&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt; value. In Lua, either the value is &amp;lt;b&amp;gt;true&amp;lt;/b&amp;gt;, or it is &amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt;/&amp;lt;b&amp;gt;nil&amp;lt;/b&amp;gt;. When trying to change this value in code, use a &amp;lt;b&amp;gt;true&amp;lt;/b&amp;gt; or a &amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt; variable.  These variables show up as a checkbox in the Properties window. &amp;lt;b&amp;gt;True&amp;lt;/b&amp;gt; is a checked box, &amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt; is an unchecked box.  == Examples == &amp;lt;pre&amp;gt; x = true print(x) Will result in: true  x = true print(...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{CatUp|Properties}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
A Bool, or Boolean Value is a &amp;lt;b&amp;gt;true&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt; value. In Lua, either the value is &amp;lt;b&amp;gt;true&amp;lt;/b&amp;gt;, or it is &amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt;/&amp;lt;b&amp;gt;nil&amp;lt;/b&amp;gt;. When trying to change this value in code, use a &amp;lt;b&amp;gt;true&amp;lt;/b&amp;gt; or a &amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt; variable.&lt;br /&gt;
&lt;br /&gt;
These variables show up as a checkbox in the Properties window. &amp;lt;b&amp;gt;True&amp;lt;/b&amp;gt; is a checked box, &amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt; is an unchecked box.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
x = true&lt;br /&gt;
print(x)&lt;br /&gt;
Will result in:&lt;br /&gt;
true&lt;br /&gt;
&lt;br /&gt;
x = true&lt;br /&gt;
print(not x)&lt;br /&gt;
Will result in:&lt;br /&gt;
false&lt;br /&gt;
&lt;br /&gt;
print(not false)&lt;br /&gt;
Will result in:&lt;br /&gt;
true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Boolean values are used to represent the results of logic tests. The equals ==, and not equals ~= operators will return boolean values depending on the values supplied to them. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
print(1 == 0) -- test whether two numbers are equal&lt;br /&gt;
Will result in:&lt;br /&gt;
false&lt;br /&gt;
&lt;br /&gt;
print(1 == 1)&lt;br /&gt;
Will result in:&lt;br /&gt;
true&lt;br /&gt;
&lt;br /&gt;
print(1 ~= 0) -- test whether two numbers are not equal&lt;br /&gt;
Will result in:&lt;br /&gt;
true&lt;br /&gt;
&lt;br /&gt;
print(true ~= false) -- is true not equal to false?&lt;br /&gt;
Will result in:&lt;br /&gt;
true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[RBX.lua.BoolValue (Object)]]&lt;br /&gt;
&lt;br /&gt;
[http://www.lua.org/pil/2.2.html Programming in Lua 2.2: Booleans]&lt;br /&gt;
&lt;br /&gt;
[http://lua-users.org/wiki/LuaTypesTutorial Lua Types Tutorial]&lt;br /&gt;
&lt;br /&gt;
[[Category:Properties]]&lt;/div&gt;</summary>
		<author><name>PRG</name></author>
	</entry>
</feed>