Skip to main content
February 19, 2021
Question

Does multi-conditional if() function work differently between ER and Interface ?

  • February 19, 2021
  • 2 replies
  • 1 view

Hi,

I found in an existant ER code this kind of multiple condition:


if(cons!TEST = "1",
  "VALUE 1",
  cons!TEST = "2",
  "VALUE 2",
  cons!TEST = "3",
  "VALUE 3",
  cons!TEST = "4",
  "VALUE 4", 
  cons!TEST = "5",
  "VALUE 5",
  ""
)

That seems to works fine, but when I put this condition in an interface and click on "DESIGN MODE", I obtain this error:

   "Cannot load Design Mode : The function ’’if’’ [line 275] has 3 parameter(s), but instead passed 11 parameter(s)."

Where is the truth ? 

2 replies

mikes0011
Brainy
February 19, 2021

The truth is murky.  The "multiple if" functionality is semi-undocumented, always works, but sometimes has weird side-effects like you're seeing here.

The Expression Guru
February 19, 2021

oh I see... thank you Mike...