Skip to content

Commit 12da7ef

Browse files
asaydmontegoulding
authored andcommitted
[[ Documentation ]] Fixes to ampersand.lcdoc
- Fixed malformed description in params. - Added missing references and removed irrelevant references. - Fixed embedded links. - Added html5 as an OS. - Improved examples. - Removed The result element; operator does not set the result. - Clarified Description. (cherry picked from commit d814d25)
1 parent dd44490 commit 12da7ef

1 file changed

Lines changed: 18 additions & 19 deletions

File tree

docs/dictionary/operator/ampersand.lcdoc

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,43 @@ Summary:
99

1010
Introduced: 1.0
1111

12-
OS: mac, windows, linux, ios, android
12+
OS: mac, windows, linux, ios, android, html5
1313

1414
Platforms: desktop, server, mobile
1515

1616
Example:
1717
put "foo" & "bar" -- evaluates to "foobar"
1818

1919
Example:
20-
put myVar & return & return into otherVar
20+
local myVar, otherVar
21+
put myVar & quote & "hello" & quote into otherVar
2122

2223
Example:
24+
local theData
2325
get offset(return & space, theData)
2426

2527
Parameters:
2628
string1 (string):
27-
And <string2> are <docRef src="glossary/Values_and/385.xml">literal
28-
strings</docRef> of <docRef
29-
src="dictionary/keyword/1485.xml">characters</docRef> (<docRef
30-
src="glossary/Text_and_D/159.xml">delimited</docRef> with <docRef
31-
src="glossary/Text_and_D/465.xml">double quotes</docRef>), or <docRef
32-
src="glossary/Writing_Tr/152.xml">expressions</docRef> that <docRef
33-
src="glossary/Writing_Tr/104.xml">evaluate</docRef> to <docRef
34-
src="glossary/Text_and_D/529.xml">strings</docRef>.
29+
A <literal string> of <character|characters> (<delimit|delimited> with
30+
<double quote|double quotes>), or <expression|expressions> that evaluate
31+
to strings.
3532

3633
string2 (string):
37-
38-
39-
The result:
40-
The result of the <operator> is a <string> consisting of <string1>
41-
followed by <string2>.
34+
A <literal string> of <character|characters> (<delimit|delimited> with
35+
<double quote|double quotes>), or <expression|expressions> that evaluate
36+
to strings.
4237

4338
Description:
4439
Use the & <operator> to create a single <string> out of two or more
45-
parts.
40+
parts. That is, <string2> is appended immediately after <string1>
41+
with no intervening space.
42+
4643

47-
References: split (command), quote (constant), string (glossary),
48-
concatenate (glossary), operator (glossary), \ (keyword),
49-
string (keyword)
44+
References: character (glossary), concatenate (glossary),
45+
delimit (glossary), double quote (glossary), evaluate (glossary),
46+
expression (glossary), literal string (glossary), offset (function),
47+
operator (glossary), quote (constant), return (constant),
48+
string (glossary)
5049

5150
Tags: text processing
5251

0 commit comments

Comments
 (0)