asciidoctor 中 ifeval::[] 中的复杂条件

Complex conditions in ifeval::[] in asciidoctor

可能是个愚蠢的问题,但我怎样才能在 asciidoctor 中创建更复杂的 ifeval 条件?

例如

:x: (this is passed from maven POM)

ifeval::['{x}' != 'C2' or '{x}' != 'C3']
...
endif::[]

尽管在 asciidoctor 用户手册中写了关于条件运算符的内容:

"The operators follow the same rules as operators in Ruby."

好像是"and", "or", "&&", "||"不是规则的一部分?

提前致谢。

事实证明,目前 ifeval:: 不支持此功能 -> https://github.com/asciidoctor/asciidoctor/issues/1786

虽然它支持 ifdef 和 ifndef,并且可以用于例如:


ifeval::[...]
:attr1:
endif::[]

ifeval::[...]
:attr2:
endif::[]

OR
ifdef::attr1,attr1[] 
...
endif::[]

AND
ifdef::attr1+attr1[] 
...
endif::[]

我觉得有点不方便。