Category:Tidbits and Snippets: Difference between revisions
Jump to navigation
Jump to search
→Assorted
Line 7: | Line 7: | ||
Using '''special symbols / characters''' in '''string formatting''': | Using '''special symbols / characters''' in '''string formatting''': | ||
---- | |||
To use the '''%''' symbol in strings: | To use the '''%''' symbol in strings: | ||
Display("The %% is the percent symbol."); | |||
---- | |||
To use '''quote marks''' in strings: | To use '''quote marks''' in strings: | ||
Display("The \" is a quote mark."); | |||
---- | |||
To use '''line breaks''' in strings: | To use '''line breaks''' in strings: | ||
Display("The [ is a line break."); | |||
---- | |||
To use the '''[''' symbol in strings: | To use the '''[''' symbol in strings: | ||
Display("The \[ is a left brace."); | |||
---- | ---- | ||
[[Category:Adventure Game Design]] | [[Category:Adventure Game Design]] |