Eval
- 14 May 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Eval
- Updated on 14 May 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
This is generated from the built in components of Otter 3.0.0, and may be different than what you have installed (especially if you have extensions); go to [User Icon] -> Documentation within your BuildMaster instance to see exactly what operations are available.
Eval
Performs variable substitution and function evaluation for arbitrary text.
Script usage:
Eval(Text)
Parameters:
Name | Description |
---|---|
☆ Text | The text to process. |
Example:
# format strings taken from https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx set $OtterScript = >> Now: $Date UTC Now: $DateUtc Custom: $Date(hh:mm:ss.f) RFC1123: $Date(r) Sortable: $Date(s) Short time: $Date(t) >>; set $Result = $Eval($OtterScript); Log-Information $Result;
Was this article helpful?