Evaluate root if function