-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to set default value for bool variable #1100
Comments
|
thanks. @fw42 . The variable |
Workarounds
|
thx, @ashmaroli Yes, I can do it like this. thx. |
The default filter
This fallback rule shouldn't apply when a variable has a boolean value of |
Looks like we are missing documentation on https://shopify.github.io/liquid/filters/default/ for the liquid/lib/liquid/standardfilters.rb Lines 434 to 437 in c7c21e8
|
@dylanahsmith The commit that introduced |
I want to get the value of varA, but, Liquiddefault filter will set the value only if “the left side is nil, false, or empty”. So I always get ture.
How sould I get the value of varA? thx.
The text was updated successfully, but these errors were encountered: