Chapter 4. Operators and Expressions

An expression in a programming language is a combination of values, operators, variables and functions that are evaluated in a particular order of precedence to produce a value. An operator performs an operation on one or more operands to produce a value. In JavaFX Script, everything that is not a definition is an expression. This chapter describes the syntax, meaning, and the use of various expressions and operators in JavaFX Script.

Most of the operators in JavaFX Script are the same as in Java, with a very few exceptions. In this chapter, you will see the following operators in detail:

  • The assignment operator

  • Arithmetic operators

  • Unary operators

  • Relational operators

  • Logical operators

Operators combine multiple ...

Get Beginning JavaFX™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.