... | ... | @@ -76,8 +76,8 @@ EndIf |
|
|
`DefineConstant` can also be used to define several constants at once, mixing numbers and strings:
|
|
|
```cpp
|
|
|
DefineConstant [
|
|
|
n = {3.14, Name "a number", <attributes...>} ,
|
|
|
s = {"hello", Name "a string", <attributes>}
|
|
|
n = {3.14, Name "a number", <attributes...>},
|
|
|
s = {"hello", Name "a string", <attributes...>}
|
|
|
];
|
|
|
```
|
|
|
As with `DefineNumber` and `DefineString`, if a ONELAB server does not exists the `DefineConstant` command simply assigns the default values to the local variables.
|
... | ... | |