start of n-ary cpt
added if-rule
before cleanup
much progress on proper conditional
condition seems to work somewhat
repl updated