String interpolation (included): Difference between revisions
alternate approach for string interpolation added
Jazzedpineda (talk | contribs) (Omitted Microsoft Small Basic) |
(alternate approach for string interpolation added) |
||
Line 1,896:
aString =substr("Mary had a X lamb.", "X", "little")
see aString + nl
</syntaxhighlight>
An alternate approach using the print() function:
<syntaxhighlight lang="ring">
extra = "little"
print("Mary had a #{extra} lamb.\n")
</syntaxhighlight>
|