Fix: IfThenElseSnippted would also trigger if any string was specified as condition; this should only be if 'true' or '"yes"'
This commit is contained in:
parent
86c62e520a
commit
717d0a9514
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ namespace AspectedRouting.IO.LuaSnippets
|
|||
|
||||
var isString = cond.Types.First().Equals(Typs.String);
|
||||
result += Snippets.Convert(lua, c, cond) + "\n";
|
||||
result += $"if ( {c} or {c} == \"yes\" ) then \n";
|
||||
result += $"if ( {c} == true or {c} == \"yes\" ) then \n";
|
||||
result += " " + Snippets.Convert(lua, assignTo, ifTrue).Indent();
|
||||
|
||||
if (ifElse != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue