value | ||||||||||
Type | function | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Summary | Returns the value of an expression. | |||||||||
Introduced | 1.0 | |||||||||
OS | mac, windows, linux, ios, android | |||||||||
Platforms | desktop, server, mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Values |
| |||||||||
Related | Property: script Operator: () Keyword: me, numeric, string, card Control Structure: function Function: value, merge Command: call Glossary: object, current card, return, handler, operator, logical, statement, literal string, expression, evaluate, object reference | |||||||||
Description | Use the value function to evaluate an expression, or to force LiveCode to evaluate an expression within a statement.
If you specify an object, references to me in the expression are treated as references to the object. However, other object references are treated as though the handler were in the current object's script. For example, "button 3" refers to button 3 on the current card, not the card where the object is located. If the expression is a single string, then even if it is enclosed in quotes, LiveCode attempts to evaluate its contents instead of treating it as a string literal. This means that you must be careful about string literals that contain operators such as "and". | |||||||||
Tags | properties |