Hi everyone !
On a card in Decker I have a function who is trying to toggle a boolean value in a "state" column in the grid named "tasks". I just don’t understand why the function is not working… I think I don’t undersand something about types or queries. I tried so many options… I think there is something that I’m missing…
on toogle tid do # get the state value of the line with id=tid v:tasks.value[id=tid].state # toogle the value v: if v=1 0 else 1 end # update the grid with the correct value tasks.value:update state:v where id=tid from tasks.value end

