2.9.1.1. start.env with conditional sections

In The start.env can also use conditional sections.

The conditional sections depend on other environment variables again.

Example:

[ENVIRONS]
var=value

[ENVIRONS(COMPUTERNAME=EXV9*)]
var=value

[ENVIRONS(COMPUTERNAME=BEXV9*)]
var=value

[ENVIRONS(LOGONSERVER=*server.de*)]
var=value

[ENVIRONS(LOGONSERVER=server.it*)]
var=value

Now the file is parsed from top to bottom.

The last match wins (overwrites the "var").

Any existing os-env-var can be used.

There are 3 operations:

  • VAR=text* => StartsWith

  • VAR=*text => EndsWith

  • VAR=*text* => contains