I've found this will work, but it is worth doing a |bool filter after the var to make sure it works when passed in from command line or other interpolated value