I want to be able to read the value that I have set in the dialog and use it in Sightly to control what section of code is shown. When I have tried using the code below I have been receiving this error "Operands are not of the same type : comparison is supported for numbers only". I have tried so many different fixes and have found nothing that works nor any documentation for it. Is context = 'number' not the correct syntax or is there anything else I have to add?
IN THE DIALOG
<number
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/select"
fieldLabel="Select Amount of Delivery Options"
name="./number"
value = "4" >
<items jcr:primaryType="nt:unstructured">
<four
jcr:primaryType="nt:unstructured"
text="Four"
value= "4" />
<three
jcr:primaryType="nt:unstructured"
text="Three"
value= "3" />
<two
jcr:primaryType="nt:unstructured"
text="Two"
value= "2" />
<one
jcr:primaryType="nt:unstructured"
text="One"
value= "1" />
</items> </number>
IN THE HTL
<sly data-sly-test="${properties.podnumber @ context = 'number' >= 1}">