String: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
m Redirected page to Data Types#string
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:name|string}}
#REDIRECT [[Data Types#string]]
{{#customtitle:{{#var:name}}()|{{#var:name}}()}}
{{Primitive|Name={{#var:name}}}}
==Concatenating Strings==
<code>
  [[print()|print]]("My base muscle: " + [[my_basestat()|my_basestat]]($[[stat]][muscle]));
  [[print()|print]]("My base moxie: " + [[my_basestat()|my_basestat]]($[[stat]][moxie]));
  [[print()|print]]("My base mysticality: " + [[my_basestat()|my_basestat]]($[[stat]][mysticality]));
  [[comments|// To grab your base main stat, you can:]]
  [[print()|print]]("My base main stat: " + [[my_basestat()|my_basestat]]([[my_primestat()]]));
  [[comments|// To grab substats, you can:]]
  [[print()|print]]("My current muscle substats: " + [[my_basestat()|my_basestat]]($[[stat]][submuscle]));
</code>

Latest revision as of 04:43, 14 July 2010

Redirect to: