diff --git a/easy_images/options.py b/easy_images/options.py index 3b31bd6..c75b862 100644 --- a/easy_images/options.py +++ b/easy_images/options.py @@ -62,7 +62,7 @@ def __init__(self, bound=None, string="", /, **options): value = options.get(key) if isinstance(value, Variable): value = value.resolve(context) - if value and value != 0: + if value or value == 0: parse_func = getattr(self, f"parse_{key}") setattr(self, key, parse_func(value, **options)) else: