Hi everyone, I need help understanding how to handle multiple choices in HTML, where I can replace not just a single value like segmented but parts of code.
Maybe I didn’t find the right page or examples ![]()
In the guide, I only found the switch @if(…) , which works well, but it only gives me two options.

This solution doesn’t work.
the JSON is fine.
{
"title": "options",
"id": "multiple",
"segmented": {
"default": {
"base": "aaa"
},
"items": [
{
"value": "aaa",
"title": "Option A"
},
{
"value": "bbb",
"title": "Option B"
},
{
"value": "ccc",
"title": "Option C"
}
]
}
}
HTML with this solution give me error
@if(multiple == 'aaa')
<div class="p-sm text-3xl text-center text-brand-100">
option A
</div>
@endif
@if(multiple == 'bbb')
<div class="p-sm text-2xl text-left text-green-600">
option B
</div>
@endif
@if(multiple == 'ccc')
<div class="p-sm text-xl text-right text-red-600">
option C
</div>
@endif
I didn’t find anything else in the guide. Can someone point me in the right direction?
Thanks!