如果条件始终在运行并显示第一个值。它没有其他条件。
<tbody id="datatableBody">
{{#Myfriends}}
<tr class="trcss" id="iRows">
<td class="tdcss" id="tr_0" >{{Record.Name}}</td>
<td class="tdcss" id="tr_1"><div style="cursor:pointer; color:blue; text-decoration:underline;" onclick="getValue('{{FirstName}}','{{LastNAme}}','{{SStatus}}'">View <br> Details</div></td>
<td class="tdcss" id="tr_3">{{Record.FightSettlement}}</td>
<td class="tdcss" id="tr_4">{{Record.FightSettlementStatus}}</td>
<td class="tdcss" id="tr_5">{{Record.Reason}}</td>
{{#if "Record.FightSettlementStatus == 'FAILED'"}}
<td class="thcss" id="tr_8"><div style="cursor:pointer; color:blue; text-decoration:underline;" onclick="reSettle('{{Record.Solved}}');">Resettle</div></td>
{{else}}
<td class="thcss" id="tr_8">No Action Required</td>
{{/if}}
</tr>
{{/Myfriends}}
</tbody>
答案 0 :(得分:1)
把手不会评估你的表情。您需要自己进行评估并设置一个布尔变量或使用#xIf helper。
之类的东西