From 81fda963016bff77a25666f50cc3afb2f19878be Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 16:45:48 -0800 Subject: Updated to use 'set' syntax instead of ": yes" --- core/control_flow.nom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/control_flow.nom') diff --git a/core/control_flow.nom b/core/control_flow.nom index d96e916..964250e 100644 --- a/core/control_flow.nom +++ b/core/control_flow.nom @@ -54,7 +54,7 @@ test: ..all compile to: # If %when_true_expr is guaranteed to be truthy, we can use Lua's idiomatic equivalent of a conditional expression: (cond and if_true or if_false) - if {Text: yes, List: yes, Dict: yes, Number: yes}.(%when_true_expr.type): + if {"Text", "List", "Dict", "Number"}.(%when_true_expr.type): return (Lua "(\(%condition as lua expr) and \(%when_true_expr as lua expr) or \(%when_false_expr as lua expr))") ..else: # Otherwise, need to do an anonymous inline function (yuck, too bad lua -- cgit v1.2.3