Titan



match


The operation belongs to the family of predefined functions operating on templates. It allows the value of a variable or parameter to be compared with a template (it can be interpreted as an extended 'equality' operation). The operation returns a Boolean value. 


Related keyword:


match (value, template_instance)


Example 1

template integer tr_LessThan10 := (-infinity..9);
var integer vl_RxValue := 3;
var boolean vl_gyufa := match( vl_RxValue, tr_LessThan10))

The value of vl_gyufa will be true because the value of the variable vl_RxValue (3) matches the template tr_LessThan10.



BNF definition of match