12-14-2023 08:47 AM
The switch I'm using changes the test parameters and I'm trying to get these test parameters to be recorded in the write function. However there are letters in the test code names, I was wondering if there is a way to set a global variable to a Letter/Number combination or if there was another way to do something like this. I apologize if this is unclear as this is my first time using this software.
12-14-2023 09:48 AM - edited 12-14-2023 09:53 AM
Use the Global String Advanced feature and the string format function strfmt to embed a number within a string. For example, define and set a global variable named NUMBER to a number, say 3.14159. Then, use the Global String Advance feature to create a string like the following:
"This is my number: " + strfmt(${NUMBER}, 5, 3).
The result is "This is my number: 3.142"