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 Resolution), there are environment variables. These are global constants you can access in any SIL program using the  silEnv routine.


Declaring Environment Variables

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

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

Code Block
titlesil.properties
VAT=0.24

 

2. Retrieve  Retrieve the value in the SIL program and then use it just like any other variable. Make sure you cast it to your designated type (in our case, a number)

...