• Using Carets
    • A caret (^) is used to convert a results name into its value.
    • Carets can be used on parameters, in strings, in tables, etc.
      nM> set a 20
      nM> say "The value of A is ^A"
      The value of A is 20
    • It is also possible to use the caret-curly-brace syntax (^{...}) to explicitly limit where a results name starts and stops.
      nM> set height 20
      nM> say "The height is ^{height}ft"
      The height is 20ft
    • The caret-curly-brace syntax (^{...}) is common when working with tables.
      nM> set people {TOM={AGE=37,WEIGHT=189},SUE={AGE=32,WEIGHT=135}}
      nM> set person SUE
      nM> say "^person is ^{people.^{person}.age} years old."
      SUE is 32 years old.
      In this example ^{people.^{person}.age} becomes ^{people.SUE.age} which then becomes 32.