Scope Rules for Declaring Variables in Formula Nodes
Formula Nodes use the same scope rules for declaring variables as C.
- All variables you declare in bracketed blocks are only accessible within the bracketed block.
- All input terminals are considered variables at the outermost block (not enclosed in brackets), and cannot be declared again in other blocks.
- LabVIEW tries to match variables you declare at the outermost block (not enclosed in brackets) to output terminals with the same name.
- You can declare output terminals that have no corresponding input terminal and are not declared at the outermost block.