Can I format BOLD inside a ternary operator?

I want to be able to format part of a ternary operator, can I do it?

I have a button that has two states

image
image

by using this in the button

Save and enter more details {{inp_index.value ? "for " + inp_index.value.uppercase() : "[Enter Index]"}}

In simple terms I want to

inp_index.value.uppercase().format(bold)

but that doesn’t work :smile:

Is it possible to make the inp_index bold without affecting the “for”?

Community Page
Last updated: