Using info operations

How to use info operations in Plytix formulas, with real examples of when you'd use each one

Info operations let you check information about a value itself, whether a field is empty, or whether one piece of text appears inside another. This article covers both info operations, plus common use cases combining them.

ISBLANK

Tests whether a field is empty.

Syntax:

ISBLANK(value)
  • value: the value to test.

Example:

ISBLANK($ATT.SHORT_DESCRIPTION)

If SHORT_DESCRIPTION has no value, result: True. If it contains any text, result: False.

IS_SUBSTR

Tests whether a string is found within another piece of text.

Syntax:

IS_SUBSTR(substring, text_to_search, [starting_at])
  • substring: the string to look for.
  • text_to_search: the text to search within.
  • starting_at (optional, 1 by default): the character position in text_to_search to start the search from.

Example:

IS_SUBSTR("World", "Hello World")

Result: true

Common Use Cases for Info Operations

Flagging products missing critical content

Combine ISBLANK with IF (see Logical operations) to flag products missing a critical field, useful as a quick content-completeness check without setting up a full Completeness attribute:

IF(ISBLANK($ATT.SHORT_DESCRIPTION), "Missing description", "OK")

Checking whether a description already mentions a specific keyword or certification

Use IS_SUBSTR to check whether a longer text field already contains a specific word or phrase, useful before appending something to avoid duplicating it, for example, checking whether a description already mentions a certification before adding it automatically:

IF(IS_SUBSTR("CE Certified", $ATT.DESCRIPTION), $ATT.DESCRIPTION, CONCAT($ATT.DESCRIPTION, " CE Certified."))

ISBLANK and IS_SUBSTR are often used as the condition inside an IF statement, they’re rarely useful entirely on their own, since most of the time you want to do something based on the True/False result they return.

Frequently Asked Questions

  • ISBLANK evaluates whether a value is empty and returns a boolean (True or False).
  • IFBLANK (covered under Logical operations) performs the same check, but allows you to provide a fallback value to display if the field is empty.

Yes. IS_SUBSTR is case-sensitive by default (though if you need to be certain for a specific edge case, you can quickly verify it in the formula editor).

It starts at the first character (position 1) unless you specify a different starting_at index.