Setting variable

How do you set a varible with information that contains a string and also another variable? For example:

subject="Attention: $name / This $type needs your attention"

The $xxxx are of course other variables that I instantiated earlier. Is it like Java where you have to use double quotes and then single quotes within? Can someone please provide an example. Thanks!

what you are doing is right