I can set a checkbox to intermediate with:
    C-u C-u C-c C-x C-b

But I want to do it with code. How would I do that?

--
Cecil Westerhof