# Is there anyway to make the checkbox component accept 1s and 0s as true and false?

**URL:** <https://forum.inductiveautomation.com/t/is-there-anyway-to-make-the-checkbox-component-accept-1s-and-0s-as-true-and-false/62461>\
**Category:** Ignition\
**Created:** [July 29, 2022, 11:41am UTC](https://forum.inductiveautomation.com/t/is-there-anyway-to-make-the-checkbox-component-accept-1s-and-0s-as-true-and-false/62461 "2022-07-29T11:41:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [July 29, 2022, 11:41am UTC](https://forum.inductiveautomation.com/t/is-there-anyway-to-make-the-checkbox-component-accept-1s-and-0s-as-true-and-false/62461/1 "2022-07-29T11:41:16Z")

</div>

I noticed that when i drag and drop a boolean into the view it lets me make checkboxes , its value accepts true and false

however, I am using historical playback from the ignition exchange, which lets you view the old recorded values matched to the time they were recorded , outputting the old values

it works for other Variable types great but for booleans in particular it outputs them as 0’s and 1’s , so the checkbox doesn’t like them because its looking for a true and false in its binding

is there a setting somewhere to make them accept 0s and 1s as well? as this would allow for people to dynamically go back and see when booleans trip at specific times

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 29, 2022, 12:02pm UTC](https://forum.inductiveautomation.com/t/is-there-anyway-to-make-the-checkbox-component-accept-1s-and-0s-as-true-and-false/62461/2 "2022-07-29T12:02:20Z")

</div>

> [@IgnitionNewbie](#):
>
> drag and drop a boolean into the view

I will assume that this means you are working in perspective.

I can quickly think of two ways to accomplish this.

1. convert the value to a boolean at assignment.

```auto
self.getSibling("Checkbox").props.selected = bool(value)

```

1. create a custom property on the checkbox, bind the selected property to that and use a transform of some kind.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/2/623c63722c37099a29b38b96ccf06f058af48cd1.png)

---

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [July 29, 2022, 12:49pm UTC](https://forum.inductiveautomation.com/t/is-there-anyway-to-make-the-checkbox-component-accept-1s-and-0s-as-true-and-false/62461/3 "2022-07-29T12:49:20Z")

</div>

ah heck yea! that worked like a charm , thank you very much
