TutorialGetting Started with MacrosMacro EditorUser InterfaceMenus and ToolbarEditing Macro StatementsExpression EditorMacro DebuggingHow ToUsing variablesFinding and modifying objectsCreating new page contentAsking for user inputStoring persistent dataSorting objectsSample MacrosConceptsExpressionsObjectsPropertiesVariablesData TypesArraysFunctionsLiteralsOperatorsComments |
Last updated on: February 06, 2021
Also available as a single HTML file Onetastic Macro Documentation > Concepts > Operators OperatorsMacro expressions can contain several different operators. They can be used for assignments, comparisons, arithmetic or logical operations and string concatenations. Following is a list of all the operators. Operators can be operating on one (unary), two (binary) or three (ternary) sub expressions:
Operator PrecedenceIn macro expressions, order of evaluation for operators is always left to right. There is no precedence of any operator to another. For instance the expression 2 + 3 * 4 evaluates to 20 (first 2 + 3 = 5, then 5 * 4 = 20). The order of operations can be changed by providing parantheses: 2 + (3 * 4) will evaluate to 24. The Expression Editor automatically fully paranthesizes any expression so that this is obvious. If you type 2 + 3 * 4 / 5 to Expression Editor it will automatically parse and convert it to ((2 + 3) * 4) / 5. |
ReferenceStatementsForEachIfElseWhileExpressionCommentBreakContinueReturnHierarchy ObjectsNotebookRootNotebookSectionGroupSectionPagePage ObjectsTitleOutlineTableColumnRowCellParagraphTextImageEmbeddedFileTagOther ObjectsDialogBoxFunctionsArray FunctionsColor FunctionsData Store FunctionsDate/Time FunctionsDialog Box FunctionsMacro Execution FunctionsObject FunctionsString Functions |