Matt C.
Well-known member
I know this is going to be a stupid mistake on my part, but I'm trying to detect whether or not an entity's value equals 1.
Here is my template code. This doesn't work.
Thank you.
Here is my template code. This doesn't work.
Code:
<xf:if is="$match.voice == 1">
<span class="mic" data-xf-init="tooltip" title="{{ phrase('ah_mm_x_has_a_microphone') }}">
<xf:fa icon="microphone" />
</span>
<xf:else />
<span class="mic" data-xf-init="tooltip" title="{{ phrase('ah_mm_x_does_not_have_a_microphone') }}">
<xf:fa icon="microphone-slash" />
</span>
</xf:if>
Thank you.