decide
このコンテンツはまだ日本語訳がありません。
decide
Section titled “decide”Step: conditional branching (when
Children
Section titled “Children”Translations
Section titled “Translations”- en: decide
- de: entscheidet
- es: decide
- fr: décide / decide
- 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}