...
If the variable can be read, then gbValue will be set to TRUE, otherwise, it will be set to FALSE.
Example configuration
Code Block |
---|
|
{
"operatingSystem": {
"ImageId": 13,
"diskConfigId": 1,
"localAdmin": "true",
"password": "1506Test"
},
"domain": {
"joinDomain": "CAPADEMO.LOCAL",
"domainName": "CAPADEMO.LOCAL",
"domainUserName": "ciinst",
"domainUserPassword": " |
...
dftgyhuj",
"computerObjectOU": "OU=Computers,OU= |
...
Lazise,OU=Dev2,DC=CAPADEMO,DC=local"},
"title": "Default",
"customValues": [{
"key": "a",
"value": "1"
}]
} |
Example
Code Block |
---|
Variable exists:
If bStatus Then bStatus = CMS_ |
|
GetPackageStatusGetDeploymentTemplateVariable(" |
|
CapaInstallerv1.0")
domainUserName", True)
This will set bStatus = true, gbValue = true and gsValue = ciinst
Root variable:
If bStatus Then bStatus = |
|
JobWriteLogGetDeploymentTemplateVariable(" |
|
Custom", "title", True)
This will set bStatus = true, gbValue = true and gsValue = Default
Custom variable:
If bStatus Then bStatus = CMS_GetDeploymentTemplateVariable("CustomValues", " |
|
& gsValue, bStatus, True)a", True)
This will set bStatus = true, gbValue = true and gsValue = 1
bMustExist:
If bStatus Then bStatus = CMS_GetDeploymentTemplateVariable("domain", "publishedAuthority", True)
This will set bStatus = false, gbValue = false and gsValue = ""
|
|
Scripting Guidelines