.. _auto_string_eval: *STRING EVAL* ============= Evaluates a PHP string expression at runtime and returns one of two configurable string tokens depending on whether the expression resolves to 1 (truthy) or not. Use it for lightweight conditional branching within a workflow where the pass/fail decision can be expressed as an inline string expression. When to use ----------- Classification: **process**. Tagged: ``branching``, ``conditional``, ``eval``, ``expression``, ``scalar``, ``string_eval``, ``token``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Expression - expression - scalar - — - ✓ - A PHP-compatible string expression (e.g. '$a > 5') that will be evaluated at runtime; the result is compared to 1 to decide which token to return. * - Pass Token - pass_token - scalar - — - ✓ - String value returned when the expression evaluates to 1 (truthy); defaults to 'yes' if left blank. * - Fail Token - fail_token - scalar - — - ✓ - String value returned when the expression does not evaluate to 1; defaults to 'no' if left blank. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - string_eval_output_1 - string_eval_output_1 - scalar - The resolved token string — either the pass token or the fail token — depending on the outcome of the evaluated expression. Disciplines ----------- - platform.workflow Runnable example ---------------- A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: `/api/workflow/example?id=string_eval `_ .. raw:: html

Auto-generated from transformation schema. Worker id: string_eval. Schema hash: 1178db7b7f83. Hand-curated docs in workerexamples/ override this page when present.