Difference between revisions of "Expressions"
m (Bbecane moved page Using Expressions to Expressions: Wiki reorganization) |
|||
Line 4: | Line 4: | ||
− | + | This chapter introduces expressions -- the Analytica language used in [[definition]]s to calculate the value of a variable from other variables, such as | |
− | :<code>(-B + Sqrt(B^2 - 4*A*B))/(2*A)</code> | + | :<code>(-B + Sqrt(B^2 - 4*A*B))/(2*A)</code> |
− | An expression can consist of or contain a literal number (including Boolean or date), a text value, an identifier of a variable, an arithmetic expression, a comparison or logical expression, <code>IF THEN ELSE</code>, or a function call, such as <code>Sqrt(B)</code>. | + | An expression can consist of or contain a literal number (including Boolean or date), a text value, an identifier of a variable, an arithmetic expression, a comparison or logical expression, <code>IF THEN ELSE</code>, or a function call, such as <code>Sqrt(B)</code>. These constructs are also introduced in this chapter. |
− | + | For details on more advanced constructs, such as <code>BEGIN ... END </code> statements, [[For]] and [[While]] loops, local variables and assignments, see [[Procedural Programming]]. | |
==Sections== | ==Sections== |
Revision as of 00:35, 1 June 2016
This chapter introduces expressions -- the Analytica language used in definitions to calculate the value of a variable from other variables, such as
(-B + Sqrt(B^2 - 4*A*B))/(2*A)
An expression can consist of or contain a literal number (including Boolean or date), a text value, an identifier of a variable, an arithmetic expression, a comparison or logical expression, IF THEN ELSE
, or a function call, such as Sqrt(B)
. These constructs are also introduced in this chapter.
For details on more advanced constructs, such as BEGIN ... END
statements, For and While loops, local variables and assignments, see Procedural Programming.
Sections
- Numbers
- Date and Time Values
- Boolean or truth values
- Text values
- Operators
- IF a THEN b ELSE c
- Function calls and parameters
- Math functions
- Numbers and text
- INF, NAN, and NULL - Exception values
- Warnings
- Datatype functions
See Also
- Expression Syntax
- Parsed Expressions
- Expression Assist
- The Expression popup menu
- Tutorial: Using local variables and indexes in an expression
Comments
Enable comment auto-refresher