Each function can be embedded by the logical structure. Such as:
ROUND(SUM(1,2))
MEDIAN(AVG(1,2,3), MIN(4,5))
OR(EQ(10,10),EQ(10,15))
AND(EQ(10,SUM(7,3)),LT(10,MAX(5,20)))
Attributes from the input or output model can also be used as parameters in the functions in the following format:
{ATTRIBUTE} --> the attribute always must be in {}
Condition (input)
The condition (input) can only have functions returning BOOLEAN values TRUE or FALSE.
Therefore always the input must start with one of the LOGICALfunctions, then there can be the other functions embedded in it.
Example of how the input must be.
After the execution of the row, the test bench condition is not shown in the test bench as input but in the CONSOLE if the debug mode is on. See an example below:
This is how the test bench looks like:
This is shown in the console:
Result (output)
The result (output) can be any data type to return. All the functions can be used without any exception.
If there is a string in the function it must be in a ".." or in '...'