我尝试了以下方法:
{{#ifeq: {{{gene.codingnature}}} | 1 | Yes | No }}
{{#ifeq: {{{gene.codingnature}}} | "1" | Yes | No }}
{{#ifeq: {{{gene.codingnature}}} | 0 | Yes | No }}
{{#ifeq: {{{gene.codingnature}}} | "0" | Yes | No }}
{{{gene.codingnature}}}
为 0。输出始终为No。
我也试过:
{{#ifexpr: {{{gene.codingnature}}} = 0 | Yes | No }}
{{#ifexpr: {{{gene.codingnature}}} = 1 | Yes | No }}
Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{".
但是,如您所见,它陷入了错误。