|
| 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) |
0 commit comments