<div dir="ltr">Dear list,<div>Something I probably should know better of. In ETS, if one of your MatchBody is a tuple, it needs to be wrapped as a tuple:</div><div><br></div><div><font face="monospace">    MatchBody = case is_tuple(Name) of<br>        true -> {{{Name}, '$2', '$3', '$4'}};<br>        _ -> {{Name, '$2', '$3', '$4'}}<br>    end,<br>    case ets:select(my_table, [{<br>        {Name, '$2', '$3', '$4', '_', '_'},<br>        [],<br>        [MatchBody]<br>    }])</font><br></div><div><br></div><div>I need to do this because to make it work for Name values of both <font face="monospace">test</font> and <font face="monospace">{test}</font>.</div><div>Is there a better way?</div><div><br></div><div>Thank you,</div><div>r.</div></div>