forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinteger.lcdoc
More file actions
46 lines (28 loc) · 1.05 KB
/
Copy pathinteger.lcdoc
File metadata and controls
46 lines (28 loc) · 1.05 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
Name: integer
Type: keyword
Syntax: integer
Summary:
Used with the <is a> and <is not a> <operator|operators> to check
whether a value is an <integer>.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
if field "Number to Order" is not an integer then beep
Description:
Use the <integer> <keyword> to find out whether a value is a number that
doesn't have a fractional part.
If the value contains digits (and an optional minus sign) and no other
characters, it is an integer.
If the value is an expression, it is evaluated and LiveCode checks
whether the final value is an integer. For example, the value of the
expression "22 - 3" is 19 (which is an integer), so the following
expression evaluates to true:
22 - 3 is an integer
However, the expression
"22 - 3" is an integer
evaluates to false, because the double quotes prevent the expression
"22 - 3" from being evaluated.
References: operator (glossary), keyword (glossary), integer (keyword),
is a (operator), is not a (operator)
Tags: properties