Initial implementation for if node