I'm trying to adjust an existing indirect binding we have to be an expression since I need to add some simple IF logic.
The current indirect binding:
[default]Knitting/KnittingMachines[{text},78]
With text defined as the Property:
{../RowIndex.props.text}
In this way, RowIndex is used to identify which knitting machine tag to pull the value of field 78 (TargetQuantity) from.
This works, but I need to change it to an expression so that it should conditionally select which field to pull the value from. It should use field 25 (TargetOrder) unless it's value is zero, and then it should use 29 (BagTarget) instead.
Something like this, though this contains about nested paths:
if({[default]Knitting/KnittingMachines[{../RowIndex.props.text},25]} = 0,
{[default]Knitting/KnittingMachines[{../RowIndex.props.text},29]},
{[default]Knitting/KnittingMachines[{../RowIndex.props.text},25]}
)
I've tried a number of variations on this, but am not getting anywhere and would love some help.
Thanks!