Category:Tidbits and Snippets: Difference between revisions

no edit summary
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 6: Line 6:




Using '''special symbols / characters''' in '''string formatting''':  
Using '''special symbols / characters''' in {{link|String formatting||String Formatting}}:  
 
----
* To use the '''%''' symbol in strings:
To use the '''%''' symbol in strings:
** <code>Display("The %% is the percent symbol.");</code>
Display("The %% is the percent symbol.");
 
----
*To use '''quote marks''' in strings:
To use '''quote marks''' in strings:
** <code>Display("The \" is a quote mark.");</code>
Display("The \" is a quote mark.");
 
----
*To use '''line breaks''' in strings:
To use '''line breaks''' in strings:
** <code>Display("The [ is a line break.");</code>
Display("The [ is a line break.");
 
----
*To use the '''[''' symbol in strings:
To use the '''[''' symbol in strings:
** <code>Display("The \[ is a left brace.");</code>
Display("The \[ is a left brace.");
 
----
----


[[Category:Adventure Game Design]]
[[Category:Scripting]]
310

edits