diff --git a/Nustache.Core/RenderContext.cs b/Nustache.Core/RenderContext.cs index 0b314a7..149f486 100644 --- a/Nustache.Core/RenderContext.cs +++ b/Nustache.Core/RenderContext.cs @@ -234,6 +234,11 @@ public bool IsTruthy(object value) { return (bool)value; } + + if (value is int) + { + return (int)value != 0; + } if (value is string) {