diff --git a/docs/programming.md b/docs/programming.md index 08aa724d..14066998 100644 --- a/docs/programming.md +++ b/docs/programming.md @@ -48,7 +48,25 @@ The expression `predicate` is evaluated. If its effective boolean value (see de __Examples__ -TBD +<div class="jsonata-ex"> + <div>Account.Order.Product.{ + `Product Name`: $.Price > 100 ? "Premium" : "Basic" +}</div> + <div>[ + { + "Bowler Hat": "Basic" + }, + { + "Trilby hat": "Basic" + }, + { + "Bowler Hat": "Basic" + }, + { + "Cloak": "Premium" + } +]</div> +</div> ## Variables