Skip to content

if syntax改善 #177

@yama

Description

@yama
<@IF:0||1>
<@IF:||1>
<@IF:1||>
<@IF:||&&||>
<@IF:abc||def>
<@IF:abc||!def>
<@IF:!0||!1>
<@IF:0||!1>
<@IF:5||1>
<@IF:-5||1>
<@IF:abc||!def>
<@IF:2-3||3*5||5-2*3>
<@IF:01-234-5678>
<@IF:"01-234-5678">
<@IF:"0-1">
<@IF:"">
<@IF: " " >
<@IF:2-3||' '&&"abc||def"&&3*5||5-2*3>
<@IF: [*longtitle*] >[*longtitle*]<@ELSE>[*pagetitle*]<@ENDIF>
<@IF: ![*longtitle*] >[*longtitle*]<@ELSE>[*pagetitle*]<@ENDIF>
<@IF:[*longtitle*]&&[*alias*]>true<@ELSE>false<@ENDIF>

現在の判定エンジンでは複雑な条件式の判定ができないため修正する

<@IF:1||>

これにより、:isEmpty などのモディファイアを使わずにすむ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions