I assume I would use a template somehow? If my_var == true then add a parameter, otherwise leave it out.
My use case is Karax, where autofocus = "" must be added to an input() call to add autofocus functionality. I don't want to write an if/else block and duplicate my input() code.