Error getting tags :
error 404Error getting tags :
error 404 integer | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
integer
Basics
Expander triangle
Type
Keyword
Syntax
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Used with the is a and is not a operators to check whether a value is an integer.
Examples

if field "Number to Order" is not an integer then beep

Additional Comments
Expander triangle

Use the integer keyword to find out whether a value is a number that doesn't have a fractional part.

Comments:

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 Revolution 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.

User Comments
Expander triangle