Difference between revisions of "User:DesignerThan/Sandbox/String"

From Pathfinder Wiki
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Entfernt das letzte Zeichen eines Strings:
+
===Removes the last character of a string:===
'''String:''' Mein Test String!
+
'''String: '''My Test String!<br>
<nowiki>{{#sub:Mein Test String!|0|-1}}</nowiki>
+
'''Code: '''<nowiki>{{#sub:My Test String!|0|-1}}</nowiki><br>
{{#sub:Mein Test String!|0|-1}}
+
'''Result: '''{{#sub:My Test String!|0|-1}}

Latest revision as of 20:08, 21 March 2021

Removes the last character of a string:

String: My Test String!
Code: {{#sub:My Test String!|0|-1}}
Result: My Test String