# Boolean Tips and Tricks

**URL:** https://community.linx.software/community/t/boolean-tips-and-tricks/475
**Category:** How To
**Created:** [November 10, 2020, 10:06am UTC](https://community.linx.software/community/t/boolean-tips-and-tricks/475 "2020-11-10T10:06:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dawie\_Botes](https://community.linx.software/community/user_avatar/community.linx.software/dawie_botes/32/288_2.png) [@Dawie\_Botes](https://community.linx.software/community/u/Dawie_Botes)
#### Post date: [November 10, 2020, 10:06am UTC](https://community.linx.software/community/t/boolean-tips-and-tricks/475/1 "2020-11-10T10:06:16Z")

</div>

This is a short list of learnings I’ve found regarding working with Booleans. By no means is this an exhaustive list, so feel free to add on:

**What is a Boolean:**

A Boolean is a variable, which can have only one of 2 values. It can either be **True** or **False**. That is the same as being a 1 or a 0.

In Linx, we can write it as follows (NB Case sensitive)

> True

> False

Now, you can test if something is True by just using an =

> =MyBoolean

You can also test the reverse, to see if it is false (Note the ! - You can read it as NOT)

> =!MyBoolean

Test if two Booleans are the same:

> =MyOneBoolean == AnotherBoolean

Test if two Booleans are different:

> =MyOneBoolean != AnotherBoolean

Test if two Boolean both are True (&& means AND):

> =MyOneBoolean && AnotherBoolean

Test if either Boolean are True (|| means OR):

> =MyOneBoolean || AnotherBoolean

And you can use the ! again if you want to check that 1 is True and another is False:

> =MyOneBoolean && !AnotherBoolean
