content

» Path List - Sample Meta-Update Scripts

Output

More Information

These scripts are in the Meta-Update distribution and may be run with a trial license. They are fully documented in the Meta-Update User's Guide

 
What It Does

Simply lists the set of paths in the path (or any) environment variable.

What It Shows

  • How to use a Loop = String
  • How to reference a value when that reference is itself a reference
  • How to use Output = to create a file

Details

The simplist of scripts would be a Loop= String to iterate through the path elements and an Output= with one assignment to write the file $mdash; a total of about 6 lines!

This script is more generalized, allowing the environment variable to be changed and optionally creating a file.

This script shows how an AssignInit=is used to get the value from the Environment variable specified or Path by using a double reference. The Loop= then uses this value as the string.

Further, this script will list the elements of the path in a message and only if an output file is requested, create a file. A conditional Launch=is used to write the file. After the next Path element is set into tag Pelm the AssignPre issues a message.