Zum Inhalt springen
Developer Preview — APIs and language features may change before 1.0

Expression Language

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

mashinTalk’s expression language is used in compute steps, field defaults, and inline expressions. It follows JavaScript conventions.

Operator Description Example
+ - * / Arithmetic a + b * 2
% Modulo count % 10
== != < > <= >= Comparison score >= 0.8
&& || ! Logical active && !deleted
. Property access input.name
[] Index access items[0]

Use ${} inside strings:

"Hello ${input.name}, you have ${steps.count.total} items"
Reference Description Example
input.field Machine input input.query
steps.name.field Step output steps.retrieve.results
loop.name Loop accumulator / item / index (inside loops) loop.total
context.field Execution context context.user_id