Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

string array

Scroll pagebreak

Examples

Code Block
languagetext
string $mods[] = `getChildren rfoot`;

...


int $i; 

...


for( $i = 0; 

...

   $i < $mods.getCount(); 

...


   $i += 1 )        

...

    print( $mods[$i] );

...


print ($mods.getCount()); 

...

// In this example, a module array called "$mods" is declared

...


// and the children of the node "right_foot" are assigned to it. 

...


// The for loop iterates through the elements of the array and 

...

// prints each one to the interface. The last line prints the 

...


// value of $mods.getCount, which is an integer describing 

...


// the number of children that were found in this instance.

Additional information

Related commands

...