# BOUND CONST error

**URL:** <https://forum.inductiveautomation.com/t/bound-const-error/72231>\
**Category:** Ignition\
**Created:** [April 9, 2023, 8:13pm UTC](https://forum.inductiveautomation.com/t/bound-const-error/72231 "2023-04-09T20:13:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruchika](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@Ruchika](https://forum.inductiveautomation.com/u/Ruchika)\
**Post date:** [April 9, 2023, 8:13pm UTC](https://forum.inductiveautomation.com/t/bound-const-error/72231/1 "2023-04-09T20:13:12Z")

</div>

I am using the following code for expression binding of Timer component value property, to show the data in ignition table. But it is showing Bound Const error.  
Can someone suggest, where I could be wrong?

if {Root Container.Timer.value}==0:  
end = system.date.now()  
start = system.date.addHours(end, -4)  
table = event.source.parent.getComponent("DataTable")  
results = system.alarm.queryJournal(journalName="Journal", startDate=start, endDate=end)  
table.data = results.getDataset()

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 9, 2023, 9:20pm UTC](https://forum.inductiveautomation.com/t/bound-const-error/72231/2 "2023-04-09T21:20:06Z")

</div>

It looks like you are mixing jython syntax with Ignition expression syntax. Ignition expression bindings are not scripts. They can only have functions and operators, returning a single value. No assignments. No script statements.
