Titan



valueof


The operation belongs to the family of predefined functions operating on templates. It allows to convert a sending template into a value. The returned value can be saved into a variable of the same type as the type of the template. 


Related keyword:


valueof ( template_instance)


Example 1

type record TandemType { 
   integer field1,
   boolean field2 
};
template TandemType t_SetupTemplate := { 
   field1 := 1, 
   field2 := true 
};

var TandemType v_RecipeValue := valueof( t_SetupTemplate);

The field1 of v_RecipeValue will have the value 1, whereas field2 will equal to true.



BNF definition of valueof