Skip to content

Commit b1f44bd

Browse files
committed
[[ IsReally ]] Added lcdocs for is really and is not really.
1 parent 4ab3f8c commit b1f44bd

File tree

2 files changed

+104
-0
lines changed

2 files changed

+104
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Name: is not really
2+
3+
Type: operator
4+
5+
Syntax: <value> is not really [ nothing | a boolean | an integer | a real | a string | a binary string | an array ]
6+
7+
Summary: Evaluates to true if the actual type of <value> is not the specified type.
8+
9+
Introduced: 8.0
10+
11+
OS: mac,windows,linux,ios,android
12+
13+
Platforms: desktop,server,web,mobile
14+
15+
Example:
16+
"Hello World!" is not a string -- evaluates to false
17+
18+
Example:
19+
1 + 200 is not an integer -- evaluates to false
20+
21+
Example:
22+
(100 is 100) is not a boolean -- evaluates to false
23+
24+
Example:
25+
the compress of "Hello World!" is not a binary string -- evaluates to false
26+
27+
Parameters:
28+
value: The expression to test the type of.
29+
30+
Description:
31+
Use the <is not really> operator to determine what the true type of a value is not.
32+
The true type of a value is the representation which the engine is currently holding
33+
for it, without performing any implicit type coercion. The true type of a value can be
34+
one of the following:
35+
36+
- nothing: no value, typically seen as <empty>
37+
- boolean: either true or false, typically seen as the result of a comparison operator
38+
- integer: a number with no fractional part
39+
- real: a number with a fractional part
40+
- string: a piece of text (sequence of characters)
41+
- binary string: a sequence of bytes
42+
- array: an associative array
43+
44+
The <is not really> operator differs from <is not a> in that it does not perform any
45+
type coercion. For example, *x not is an integer* would return false only when x is neither
46+
an integer nor a string which parses as an integer; whereas *x is not really an integer*
47+
only returns false if x is not currently an integer.
48+
49+
>*Note:* The <is not really> operator is subject to change during the 8.0 development
50+
cycle.
51+
52+
References: is really (operator), is a (operator), is not a (operator)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Name: is really
2+
3+
Type: operator
4+
5+
Syntax: <value> is really [ nothing | a boolean | an integer | a real | a string | a binary string | an array ]
6+
7+
Summary: Evaluates to true if the actual type of <value> is the specified type.
8+
9+
Introduced: 8.0
10+
11+
OS: mac,windows,linux,ios,android
12+
13+
Platforms: desktop,server,web,mobile
14+
15+
Example:
16+
"Hello World!" is a string -- evaluates to true
17+
18+
Example:
19+
1 + 200 is an integer -- evaluates to true
20+
21+
Example:
22+
(100 is 100) is a boolean -- evaluates to true
23+
24+
Example:
25+
the compress of "Hello World!" is a binary string -- evaluates to true
26+
27+
Parameters:
28+
value: The expression to test the type of.
29+
30+
Description:
31+
Use the <is really> operator to determine the true type of a value. The true type
32+
of a value is the representation which the engine is currently holding for it,
33+
without performing any implicit type coercion. The true type of a value can be
34+
one of the following:
35+
36+
- nothing: no value, typically seen as <empty>
37+
- boolean: either true or false, typically seen as the result of a comparison operator
38+
- integer: a number with no fractional part
39+
- real: a number with a fractional part
40+
- string: a piece of text (sequence of characters)
41+
- binary string: a sequence of bytes
42+
- array: an associative array
43+
44+
The <is really> operator differs from <is a> in that it does not perform any
45+
type coercion. For example, *x is an integer* would return true if x is truly an
46+
integer or if it is a string which can be parsed as an integer; whereas *x is really an integer*
47+
only returns true if x is currently an integer (and not a string).
48+
49+
>*Note:* The <is really> operator is subject to change during the 8.0 development
50+
cycle.
51+
52+
References: is not really (operator), is a (operator), is not a (operator)

0 commit comments

Comments
 (0)