Implements working if statements in cOOre

Resolves #5 .