Use "in":

if ("my_dynamic_name" in mytable)

Johanna

On 8 Aug 2017, at 11:04, Reinhard Gentz wrote:

> Hi,
>
> I would like to check if a certain table element exists and then take
> corresponding action like the following:
>
> if (exists(mytable["my_dynamic_name"]))
>     do something
> else
>     do something else
>
>
> Can someone give me a hint?
> Reinhard
> _______________________________________________
> bro-dev mailing list
> bro-dev@bro.org
> http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev
_______________________________________________
bro-dev mailing list
bro-dev@bro.org
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Reply via email to