diff --git a/check/test.go b/check/test.go index eaf0a12..2470721 100644 --- a/check/test.go +++ b/check/test.go @@ -80,10 +80,22 @@ func (t *testItem) execute(s string) (result bool) { switch t.Compare.Op { case "eq": - result = flagVal == t.Compare.Value + value := strings.ToLower(flagVal) + // Do case insensitive comparaison for booleans ... + if value == "false" || value == "true" { + result = value == t.Compare.Value + } else { + result = flagVal == t.Compare.Value + } case "noteq": - result = !(flagVal == t.Compare.Value) + value := strings.ToLower(flagVal) + // Do case insensitive comparaison for booleans ... + if value == "false" || value == "true" { + result = !(value == t.Compare.Value) + } else { + result = !(flagVal == t.Compare.Value) + } case "gt": a, b := toNumeric(flagVal, t.Compare.Value)