Expanding Variables in a String

You can insert a variable into another string by using the special @ character. When a variable name appears inside a literal string, and the variable name is surrounded by @ characters, then Source Insight replaces the @variable@ with the variable value.

For example:

s = "Hey, @username@, don't break the build again!"

This example replaces @username@ with the value of the variable username in the string.

You can escape the @ character with a backslash \ or by using two @ characters together. For example:

s = "Mail info@@company.com for information."