GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Three — Data Types and Operators (continued)
Unary operators apply in two general manners: pre/post-fix style to increment or decrement a variable and logical math types.
3.18.1 The ‘++’ and ‘--’ Operators
The ++ and -- operators will either increment or decrement an integer variable either before or after evaluation. If set as a prefix, ++i, the value of i will have 1 added and that value will be used in further operations within the statement while i++, the value of i will have 1 added and the remainder of the expression will use the original value of i.
These operators are a convenient method of incrementing counters and indices during loops.
3.18.2 The ‘~’, ‘!’ and ‘-’ Operators
The ~ , ! and - operators can be used as a prefix to either invert, specify a logic NOT or make negative.
Note: A known issue in Legato 1.x parse is leading unary operators on functions do not work since functions are currently loosely typed. Further, -nnn does not work correctly on parameter items following the first parameter. There are work arounds for both conditions by force coding such as (-1) instead of -1.
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.