(define (button-check c e)
(begin
(send frame-operations show #f)
(cond ((eq? c add-button) (begin (if (eq? (check-ans quest_num 1) 0)
((send frame-ops-correct center 'both)
(send frame-ops-correct show #t))
((send frame-ops-wrong center 'both)
(send frame-ops-wrong show #t)))))
There are some more codes after this to handle other cases, but seems like the error was caused because of the send frame. I've tried using cond instead of if, or use "and" for the two conditions, and tried to add begin for the predicates, but all these doesn't work. Any thoughts please?