blogger b:if statement

我怕爱的太早我们不能终老 提交于 2019-12-04 16:55:09

Translated in pseudocode you logically rather want to do the following:

if (author != A && author != B && author != C)

and thus not what you tried:

if (author != A && B && C)
<b:if cond='condition1'>
    Do something for 1
<b:else/>
    <b:if cond='condition2'>
        Do something for 2
    <b:else/>
        <b:if cond='condition3'>
            Do something for 3
        <b:else/>
            Do something for others
        </b:if>
    </b:if>
</b:if>
Milind Shrivastava

if you want to do a logical end-ing then use this format:

<b:if cond='condition 1'>
<b:if cond='condition 2'>
contents go here
</b:if>  
</b:if> 

Perhaps you need to specify && as &amp;&amp;?

That should resolve the error message you're getting. You will likely still have to fix the logic problem that BalusC pointed out.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!