Shorter template literals?

Hello everyone,

I got a little issue with literals, is there a way to make them shorters? From this:

${itemLast.VerificationValue < 0 && $h`
   <input id="reactiveId-${itemLast.ReactiveId}" type="checkbox" indeterminate/>
`}
${itemLast.VerificationValue == 0 && $h`
  <input id="reactiveId-${itemLast.ReactiveId}" type="checkbox"/>
`}
${itemLast.VerificationValue > 0 && $h`
  <input id="reactiveId-${itemLast.ReactiveId}" type="checkbox" checked/>
`}

to this:

<input id="reactiveId-${itemLast.ReactiveId}" type="checkbox"
${itemLast.VerificationValue < 0 ? "indeterminate" : itemLast.VerificationValue > 0 ?"checked" : ''}
/>

Any clue how to make this happen?

Solved:
Finally, and not so obvious to me, I’ve reached to a solution:

<input id="reactiveId-${itemLast.ReactiveId}" name="reactives" type="checkbox"
  indeterminate="${itemLast.VerificationValue < 0 && $h`indeterminate`}"
  checked="${itemLast.VerificationValue > 0 && $h`checked`}" />

I needed to add some properties, because $h`` helper can print text in properties, but can’t print values as properties and the template makes the rest.