forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathampersand.lcdoc
More file actions
51 lines (35 loc) · 1.24 KB
/
ampersand.lcdoc
File metadata and controls
51 lines (35 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Name: &
Type: operator
Syntax: <string1> & <string2>
Summary:
<concatenate|Concatenates> two <string|strings>.
Introduced: 1.0
OS: mac, windows, linux, ios, android, html5
Platforms: desktop, server, mobile
Example:
put "foo" & "bar" -- evaluates to "foobar"
Example:
local myVar, otherVar
put myVar & quote & "hello" & quote into otherVar
Example:
local theData
get offset(return & space, theData)
Parameters:
string1 (string):
A <literal string> of <character|characters> (<delimit|delimited> with
<double quote|double quotes>), or <expression|expressions> that evaluate
to <string|strings>.
string2 (string):
A <literal string> of <character|characters> (<delimit|delimited> with
<double quote|double quotes>), or <expression|expressions> that evaluate
to <string|strings>.
Description:
Use the & <operator> to create a single <string> out of two or more
parts. That is, <string2> is appended immediately after <string1>
with no intervening space.
References: character (glossary), concatenate (glossary),
delimit (glossary), double quote (glossary), evaluate (glossary),
expression (glossary), literal string (glossary), offset (function),
operator (glossary), quote (constant), return (constant),
string (glossary)
Tags: text processing