Newbie question: if statement in a Formula field?

Newbie question: if statement in a Formula field?

Hi everyone,

I'm new to Zoho and am building my first app. I'm pretty excited by what I've seen so far and
look forward to learning more.

I've got what is probably a simple question. I would like to generate a Formula field called Name Line that displays either the individual's name or the business name depending on the value of the field contact_type. I tried the following but got an error saying it didn't expect an "if":

  1. if (contact_type == 'Individual') {
  2. name
  3. } else if (contact_type == 'Business') {
  4. business_organization
  5. }


Thanks,
Kevin