I'm trying to write a wrapper around the select element. So in principle I want to be able to specify that given some boolean multiple I want to append the multiple attribute or not. Below I've given a small example:
select (id := someId, name := someName, if (multiple) "multiple".attr := "")
This obviously won't compile, but it should convey my intent.
You can try:
This way its conditional whether you add that attribute or not.