Google Apps Script

Enum MatchType

An enumeration of how a string value should be matched. Matching a string is a boolean operation. Given a string, a match term (string), and a match type, the operation will output true in the following cases:

  1. If the match type equals EXACT and the match term equals the string.
  2. If the match type equals PREFIX and the match term is a prefix of the string.
  3. If the match type equals ANY and the match term is a substring of the string.

This enumeration can be used in by a string filter control to decide which rows to filter out of the data table. Given a column to filter on, leave only the rows that match the value entered in the filter input box, using one of the above matching types.

Properties

PropertyTypeDescription
EXACTEnumMatch exact values only
PREFIXEnumMatch prefixes starting from the beginning of the value
ANYEnumMatch any substring

Methods

MethodReturn typeBrief description
getName()StringReturns the name of the MatchType to be used in the options JSON.

Detailed documentation

getName()

Returns the name of the MatchType to be used in the options JSON.

Return

String — the name of the MatchType

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.