Jump to content

Formula:Str index

E Vicipaedia
Redactio 00:10, 25 Aprilis 2011 a conlatore Robert.Baruch (disputatio | conlationes) facta (Paginam instituit, scribens '<includeonly>{{{{{|safesubst:}}}str ≥ len | 1 = {{{1|}}} | 2 = {{{2|0}}} | 3 = {{{{{|safesubst:}}}str index/logic |nocategory={{{nocategory|}}} |*{{{{{|safesubst:}}}s...')
(diff) ← Redactio superior | Redactio novissima (diff) | Redactio recentior → (diff)
Icon documentationis Documentatio formulae[ostende] [recense] [historiam inspice] [purga]

{{str index|text|number}} = Returns the number-th character of text.

Only supports a limited character set. Returns an error on unknown characters. Returns &#32; for a blank space.

  • {{str index|0123456789ABCDEF|15}} → E
  • {{str index|0123456789ABCDEF|18}}((str index)): String is not long enough.
  • {{str len|{{str index|a b|2}}}} → 5