Skip to main content

How to join two strings one of which is Subscript?



If I write this one


str=Subscript["x","y"];
StringQ[str]



False



How can I get str as string?



Answer



ToString[Subscript["x", "y"], FormatType -> StandardForm]

enter image description here


StringQ[%]



True



Comments