I have this snippet of TTCN code:
type union MyUnion {
integer kuku,
charstring ryku
}
(...)
var MyUnion unia;
unia.kuku := 15;
Now I want to check which of union field(kuku or ryku) is set. How can I achive that?
I have this snippet of TTCN code:
type union MyUnion {
integer kuku,
charstring ryku
}
(...)
var MyUnion unia;
unia.kuku := 15;
Now I want to check which of union field(kuku or ryku) is set. How can I achive that?
you can use the ischosen() function.
Example:
This works fine at least in Titan TTCN. you can find more info about Titan here.
Gustavo.