Handling boolean values
Utility for easy comparison of opt-ins and boolean values in your templates
lazy_boolean filter
This utility can be used to easily compare a user-entered values (strings and numbers) and determine if its True or False. It contains logic for common user and dataset entered values.
Examples
True/False list
Below is a list of values that this supports.
Value examples
lazy_boolean Response
True
, "True"
, "true"
, 1
, "1"
, "Yes"
, "yes"
, " Yes "
True
False
, "False"
, "false"
, 0
, "0"
, "No"
, "no"
, " No "
, ""
, " "
False
Last updated