diff --git a/src/lib.zig b/src/lib.zig index d56b44e8b7a8df53535736ac9220308a92797c17..a95a219eddd488b8576dd453efc0f98602018322 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -176,7 +176,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V comptime assertEqual(v.args.len, 2); const y = resolveArg(v.args[1], data, ctx); if (@typeInfo(@TypeOf(x)) == .Enum and comptime std.meta.trait.isZigString(@TypeOf(y))) { - return try doif(alloc, writer, body, bottom, data, ctx, opts, std.mem.eql(u8, @tagName(x), y)); + return try doif(alloc, writer, body, bottom, data, ctx, opts, !std.mem.eql(u8, @tagName(x), y)); } try doif(alloc, writer, body, bottom, data, ctx, opts, x != y); },