powered by CADENAS

Manual

Manual

2.7.1.1. start.env with conditional sections

It is also possible to use conditional sections in the start.env.

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