The FXScript Reference

For Final Cut Pro created by Joe Maller

Operators

+ - * / ! or not ~ % or mod == != < > <= >= << >> & | ^ or xor && or and || or or ? and :

Additional Notes

Basic Math Operators

+ Addition
- Subtraction
* Multiplication
/ Division

Ternary operators bug fixed

An over-agressive execution bug in ternary operators has been fixed in version 4.5. The following now works:

x = (true) ? x/1 : x/0;

In earlier versions, the second, false option would still execute causing the script to fail. As of version 4.5, this has been fixd and the false option is no longer executed.

For backwards compatibility, if/else statements are safer.