Versions Compared

Key

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

...

Excerpt

In addition to the local variables ( defined in a SIL program ) and issue variables (Variable Resolutionresolution), there are environment variables. These are global constants you can access in any SIL program using the  the silEnv routine.


Declaring Environment Variables

To be able to use these variables, you must have to follow two steps:

1. Environment variables must be defined in a special file named sil.properties. This file must reside is placed in the same directory designated as sil.home (i.e. for instance the one that contains all your scripts). You must create this file manually.

...

Code Block
number VAT = silEnv("VAT");
number price = customfield_10019;
print("VAT is:" + (price * VAT));

See also