I'm just starting with decker, and I feel like my question is absolutely basic and stupid, but I swear I've been digging at the documentation and examples and can't find the issue.
I have a button on a card that has the following script:
on click do key: 1 go[bednokey] end
The idea being that you pick up the key and it leads you to an identical card of the same location with no key.
On a previous card, I have the following script on a button, to avoid going to the card with the key once it's been picked up already:
on click do if key=0 go["fieldbed" "SlideUp"] else go["fieldbednokey" "SlideUp"] end end
And it won't work at all. It always goes to the card with the key. I tried reversing the conditions, using other symbols, no dice. What's the proper way to do this check?