Photo by Henry McIntosh on Unsplash | How to Coda a Check Box

How To Coda a Check Box?

Using a check box to simplify conditions

Christiaan Huizer

--

Although a check box can have three states as explained in this blog , see screenshot below, I focus in this blog on true and false.

in this blog I focus on two options instead of three

TRUE()

Below a simple table I use to show the power of True(). We start with the If statement using a checkbox:

Checkbox inside an If-statement

The only thing we wrote was the name of the column: ‘CheckBox’ and this works.

No need to write :

Nor to write:

Nor this option:

The filter

The same inside a filter, see below:

the check box inside a filter

Here likewise, all the other options would work as well, but the simple check box does the job.

The mains lesson is that a checkbox is True() by default and this insight you can apply elsewhere as well, like in setting up automation rules. Below a last example related to check boxes living on the canvas:

Check Boxes on the Canvas

Below two buttons that together result in 4 options.

basic options

The options on the canvas I wrote :

check boxes on the canvas

When a check box is checked, you simply note the default state (true) and if not, you add .Not() . It is as easy as this and fast in writing. This logic permits for setting up a schema really fast.

While templating I make use of this logic to keep track of options users make in the doc. The named formulas help me to see what I am doing.

I hope this article was informative and helpful. Did it help you to solve a problem you unlike would have solved other ways? What about a donation?

My name is Christiaan, and I regularly blog about Coda. While this article is free, my professional services (including consultations) are not, but I’m always happy to chat and explore potential solutions. You can find my free contributions in the Coda Community and on X. The Coda Community is a fantastic resource for free insights, especially when you share a sample doc.

Huizer Automation — Coda Expert and Coda Consultant on “How To Coda a Check Box?”

--

--

Christiaan Huizer
Christiaan Huizer

Written by Christiaan Huizer

I write about how to Coda . You find blogs for beginners and experienced makers. I publish about 1 / week. Welcome!

No responses yet