콘텐츠로 이동
Developer Preview — APIs and language features may change before 1.0

Expression Language

이 콘텐츠는 아직 번역되지 않았습니다.

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