# Index out of Range

**URL:** <https://forum.inductiveautomation.com/t/index-out-of-range/87639>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [March 20, 2024, 4:09pm UTC](https://forum.inductiveautomation.com/t/index-out-of-range/87639 "2024-03-20T16:09:10Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 20, 2024, 4:55pm UTC](https://forum.inductiveautomation.com/t/index-out-of-range/87639/12 "2024-03-20T16:55:44Z")

</div>

Use five checkboxes instead.

![Mon-Fri](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/6/e6deb882ec842d4df098ee61d1f1cec407100b6b.png)

Create an expression binding somewhere.

```auto
  if({../chkMon.props.selected}, "1", "0")
+ if({../chkTue.props.selected}, "1", "0")
+ if({../chkWed.props.selected}, "1", "0")
+ if({../chkThu.props.selected}, "1", "0")
+ if({../chkFri.props.selected}, "1", "0")

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/index-out-of-range/87639)._
