implemented if and set syntax