"Anyof" or "Contains" Construct in "IF" Conditionals? | Adobe Higher Education
Skip to main content
Level 10
September 16, 2021
해결됨

"Anyof" or "Contains" Construct in "IF" Conditionals?

  • September 16, 2021
  • 2 답변들
  • 651 조회

I know the tedious, endless, nested-if solution to this, but wondered if there is an easier way.

Does WF have a construct/conditional for calculated fiends that would do this:

IF fieldName is ANYOF (A, B, C) then output "Cat"

ELSEIF fieldName is ANYOF (X, Y, Z) then output "Ferret"

ELSEIF fieldName is ANYOF (P, Q, R) then output "Pygmie Bunny"

이 주제는 답변이 닫혔습니다.
최고의 답변: Doug_Den_Hoed_AtAppStore

Hi Kevin,

Sounds like a good fit for IFIN:

IFIN(fieldName,A, B, C,”Cat”,

IFIN(fieldName,X, Y, Z,"Ferret",

IFIN(fieldName,P, Q, R,"Pygmie Bunny",

“Red Herring”)))

Regards,

Doug

2 답변

Doug_Den_Hoed_AtAppStore
Community Advisor
Community Advisor
September 16, 2021

Hi Kevin,

Sounds like a good fit for IFIN:

IFIN(fieldName,A, B, C,”Cat”,

IFIN(fieldName,X, Y, Z,"Ferret",

IFIN(fieldName,P, Q, R,"Pygmie Bunny",

“Red Herring”)))

Regards,

Doug

KevinQu1작성자
Level 10
September 16, 2021

Perfect, just what I was hoping for!