responds with
responds with
Section: declares the machine’s OUTPUT FIELDS (an output declaration, not a return statement)
Translations
- es: responde con
- fr: répond avecrepond avec
- en: responds with
- de: antwortet mit
- ja: で応答する
- zh: 回应
- ko: 로 응답한다
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 implements 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}