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 the outermost block.
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.
Use the correct Formula Node syntax when declaring variables.
Note You can use Formula Node most effectively if you are familiar with the C programming language. LabVIEW Help assumes you are familiar with C and does not contain any topics related to programming in C. Refer to The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie or Teach Yourself C by Herbert Schildt for more information.