Closed RiskoZoSlovenska closed 2 years ago
Could you please re-open this? It isn't quite fixed yet; with https://github.com/jgm/lcmark/pull/9 merged, the output for the above sample is
False: Truthy
Null: Truthy
Empty: Falsy
Nonexistent: Falsy
With https://github.com/jgm/lcmark/pull/9, https://github.com/jgm/lcmark/pull/10 and https://github.com/jgm/lcmark/pull/11 merged, this has been resolved.
According to the README, values passed to template conditionals such as
$if(value)$
are considered falsy if they'renil
,false
or an empty table ({}
). However, this is not the case:Expected output:
Actual output:
This also affects tags such as
$for(value)$
.