Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if syntax改善 #177

Open
yama opened this issue Oct 18, 2017 · 1 comment
Open

if syntax改善 #177

yama opened this issue Oct 18, 2017 · 1 comment

Comments

@yama
Copy link
Member

yama commented Oct 18, 2017

<@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 などのモディファイアを使わずにすむ

@yama
Copy link
Member Author

yama commented Dec 11, 2018

改善済みのはずなので要テスト

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant