I have a simple table DAT >> Select DAT gets one column with a value by index >> datto CHOP makes a channel out of the selected table value. That part is straight forward.
Is there any way to get the channel value NOT to change when a certain value from the table is selected i.e. I would put the pretend variable $NC for NoChange into those table cells
I might be able to eventually make this work with some rats nest of feedback channel voodoo, but I am hoping someone knows a simple way to do it…
Off the top of my head I can’t think how to do it in one go with connected DATs, but if you use a small script each time the selected value from the table changes, it is easy to check for your NoChange value.
I’ve attached a working example, see if you can adapt it to your setup. no_change_value.tox (1.06 KB)
[code]
set value = tab("select1", 0, 0)
echo "value is "$value
if $value != “NC”
echo $value > table2[/code]
So, the first line gets the value of the cell 0,0 from the select DAT. Second line assigns that value to a variable. The last two lines “echo” the previous value when it gets NC as a value. Is there a way to write that value back into a copy of the original table at its respective row and column? echo $value > tab("table2", 1, 3) doesn’t seem to do the trick.
I attached an example of how I’ve managed to implement it so far. The top portion shows how I would like it to work (but obviously doesn’t work yet), and the bottom is less parametric, but I think it’s closer to working. no change.toe (5.21 KB)
Now when I need a new parameter, all I have to do is add a new row to the table and copy and paste the select2 >> datexec2 >> table4 no change.toe (5.04 KB)
I see you got it working, but to clarify, the second line just spits the value out to the textport so you can see it working. echo simplies returns a value to the textport, but when I use echo in the 4th line I use > to redirect the returning value into the DAT named table2