COMPUTE THE DIFFERENCE BETWEEN TWO TESTS

Compares two text strings (or file paths) and returns their difference as a text output. Use this worker to identify what has changed between two text values within a workflow, optionally trimming specified characters from the result.

When to use

Classification: process.

Tagged: array_diff, compare, diff, string, text, text_diff, transformation.

Inputs

Label ID Type Default Required Description
Text 1 text1 text   First text string or file path to compare; leave empty if no baseline value is available.
Text 2 text2 text   Second text string or file path to compare against Text 1; leave empty if no comparison value is available.
Trim trim_c text   One or more characters to strip from both ends of the diff result before returning it (e.g. whitespace or punctuation); leave blank to skip trimming.

Outputs

Label ID Type Description
text_diff_output_1 text_diff_output_1 text The computed difference between Text 1 and Text 2 as a plain text string, with any trim characters removed if specified.

Disciplines

  • data.dataset.transform

Auto-generated from transformation schema. Worker id: text_array_diff. Schema hash: 4bee47fd3515. Hand-curated docs in workerexamples/ override this page when present.