Dear Houdini - Variable Switch in Nuke
write python code in "before render" in a write node:

nuke.toNode("Switch1").knob("which").setValue(0)
and in another write node, something like:
nuke.toNode("Switch1").knob("which").setValue(1)

depending on write nodes you render, it switches value on 'Switch1' in this case.