I've got this variable named "ref":
802.11ac(auto),802.11n+a
Then I have this value, named "val":
802.11ac(auto)
so I want to check if $val is inside $ref
This is what I do:
set elements [split $ref ","]
if {([llength $elements] > 1) && ($val != "")} {
if {[lsearch $elements $val] !=...