Error: Keyword Argument unsupported by function

Certified Associate Developer

I am trying to implement a basic expression rule to determine if a short string is formatted correctly. I have the code below but it returns the error "Keyword Argument unsupported by function contains". I am getting similar errors in other parts of my application so I'd like to figure out what the error means.

  Discussion posts and replies are publicly visible

Parents
  • It means what it says.  The function "contains()" is a primitive function which doesn't accept keyword syntax.  It is called simply by passing in the parameters required (always and exactly two, an array then the value you want to find).  E.G. "contains({1, 2, 3}, 2)" will evaluate to TRUE.

    Sadly there's no easy way to tell which OOB functions support keyword syntax and which ones don't - other than, if you get that error, you know it doesn't.

Reply
  • It means what it says.  The function "contains()" is a primitive function which doesn't accept keyword syntax.  It is called simply by passing in the parameters required (always and exactly two, an array then the value you want to find).  E.G. "contains({1, 2, 3}, 2)" will evaluate to TRUE.

    Sadly there's no easy way to tell which OOB functions support keyword syntax and which ones don't - other than, if you get that error, you know it doesn't.

Children
No Data