I want to add a condition if...elseif...else
in a knockout HTML file.
I tried to add the condition like this,
<!-- ko if: condition 1 -->
[...]
<!-- /ko -->
<!-- ko elseif: condition 2 -->
[...]
<!-- /ko -->
<!-- ko else -->
[...]
<!-- /ko -->
I know how to add if...elseif
and if...notif
. But I do not have the idea about this if...elseif...else
condition.
Does anyone have the idea about this?
if A & B ... - elseif A ... - else ...
just by doing:if A & B ... - if !A & B ... - if !A & !B ...
;)