responds with
Esta página aún no está disponible en tu idioma.
responds with
Section titled “responds with”Section: declares the machine’s OUTPUT FIELDS (an output declaration, not a return statement)
Children
Section titled “Children”Translations
Section titled “Translations”- en: responds with
- de: antwortet mit
- es: responde con
- fr: répond avec / repond avec
- ja: で応答する
- ko: 로 응답한다
- zh: 回应
Example — A simple decision
Section titled “Example — A simple decision”Checks an order total and decides whether it needs a human to look at it.
machine order_check accepts total as number, is required responds with approved as boolean reason as text behaves decide review when input.total > 1000 {approved: false, reason: "needs review"} otherwise {approved: true, reason: "auto approved"} verifies test "large orders need review" given {total: 5000} expect {approved: false}