You have to define which one takes precedence, or how they interact. This would be one way, but there could be others:
if ((comp("MAIN COMP").layer("// TOGGLE LANGUAGE").effect("Show Danish")("Checkbox") == 1) && (toCompVec([0, 0, 1])[2] > 0 )) value else 0
Dan