added ReplaceByCondition node

and unit test