컨텐츠로 건너뛰기
Developer Preview — APIs and language features may change before 1.0

Expression Language

이 콘텐츠는 아직 해당 언어로 제공되지 않습니다.

Expression Language

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

Operators

OperatorDescriptionExample
+ - * /Arithmetica + b * 2
%Modulocount % 10
== != < > <= >=Comparisonscore >= 0.8
&& || !Logicalactive && !deleted
.Property accessinput.name
[]Index accessitems[0]

String Interpolation

Use ${} inside strings:

"Hello ${input.name}, you have ${steps.count.total} items"

References

ReferenceDescriptionExample
input.fieldMachine inputinput.query
steps.name.fieldStep outputsteps.retrieve.results
loop.nameLoop accumulator / item / index (inside loops)loop.total
context.fieldExecution contextcontext.user_id