x:1 y:1 z:1
if x=1&y=1&z=1 "success" else "failure" end
That helped me quite a lot. Thank you!
I did have an issue modifying the datePicker contraption though, but got it to work eventually.
I created an additional field with the selected date (v) versus the navigated-to date (p). I only wanted to invert the day of the month cell when it matched the exact date that was selected (not selecting new days of the month as the months and years were cycled through).
I don’t think I need to post the whole code block, but for some reason the if statement only works when I put the conditions in their own brackets:
if (index=p.day-1) & (p.month=v.month) & (p.year=v.year)
canv.invert[cell+1 cellsize-2]
end
Any idea as to why the above code works, but removing the brackets causes it to fail?
(The line of code in question is at the bottom of the prototype script in the datePicker contraption, if someone requires more context: if index=p.day-1 canv.invert[cell+1 cellsize-2] end.)