Thanks for your feedback.

I am trying to replace this expression:

```
if(lookup({Root Container.Group.1_S.Current_DB},2,-1)=-1,0,
if({Root Container.Group.1_S.Current_Logic}='=',if(lookup({Root Container.Group.1_S.Current_Target_DB},2,0)=lookup({Root Container.Group.1_S.Current_DB},2,0),1,2),
if({Root Container.Group.1_S.Current_Logic}='<=',if(lookup({Root Container.Group.1_S.Current_Target_DB},2,0)<=lookup({Root Container.Group.1_S.Current_DB},2,0),1,2),
if({Root Container.Group.1_S.Current_Logic}='>=',if(lookup({Root Container.Group.1_S.Current_Target_DB},2,0)>=lookup({Root Container.Group.1_S.Current_DB},2,0),1,2),
if({Root Container.Group.1_S.Current_Logic}='!=',if(lookup({Root Container.Group.1_S.Current_Target_DB},2,0)!=lookup({Root Container.Group.1_S.Current_DB},2,0),1,2),
if({Root Container.Group.1_S.Current_Logic}='>',if(lookup({Root Container.Group.1_S.Current_Target_DB},2,0)>lookup({Root Container.Group.1_S.Current_DB},2,0),1,2),
if({Root Container.Group.1_S.Current_Logic}='<',if(lookup({Root Container.Group.1_S.Current_Target_DB},2,0)<lookup({Root Container.Group.1_S.Current_DB},2,0),1,2),
0)))))))
```

With something much simpler I will need to bind this expression across 155 components and unfortunately each of this expression will need to be modified.

I am working on MDI board called SQDIP (Safety, Quality, Delivery etc) then each letter contain 31 days.

each day is representing by target and current value, which can be any value coming from DB.

So, I need to use Logical to determinate colour for each day, red, green white. So the above expression is required to give me different status.

I can do this by copying above expression and modify for each letter and day but it will be very long process.

So I tried to figured out if Logical can be dynamic.