I have this code:
const std = @import("std");
const print = std.debug.print;
pub fn main() void {
var n: u8 = 1;
print("{s}\n", .{if (n == 0) "0" else "1"});
}
But it does not do what I want. The output is "0".
Could anyone tell me what happend? Thanks a lot.