Wx:if and wx:else

the decision condition is that multiselect=0 and multiselect=1, display different content respectively, how to use it in Wechat"s development?

Mar.01,2021

<view wx:if="{{multiselect == 0}}"> 0 </view>
<view wx:if="{{multiselect == 1}}"> 1 </view>


<view wx:if="{{multiselect == 0}}"> 0 </view>
<view wx:elif="{{multiselect == 1}}"> 1 </view>

your if else is an inverse relation. You 0 1 do not have any opposite relationship

.

wx:if= "{{multiselect==0}}" wx:elif= "{{multiselect==1}}"

Menu