跳转到内容
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