Create new fields using conditions