point

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
point
Summary

Used with the is a and is not a operators to specify whether a value is a point.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
if it is not a point then exit mouseUp
RelatedProperty: points
Operator: is a, is not a
Function: value
Glossary: operator, keyword, expression
Description

Use the point keyword to find out whether a value can be used in expressions that require a point on the screen.

If the value consists of two numbers separated by a comma or by whitespace, it is a point. The numbers may be non-integers.

If the value is an expression, it is evaluated and LiveCode checks whether the final value is a point. For example, the value of the expression "22 + 3,23" is 25,23 (which is a point), so the following expression evaluates to true:

22 + 3,23 is a point

However, the expression

"22 + 3,23" is a point

evaluates to false, because the double quotes making it a string prevent the expression "22 + 3,23" from being evaluated.

Tagsproperties