Dec-23-2023, 08:47 AM
(Dec-23-2023, 08:32 AM)jss Wrote: i need to check if a given list of metadata contains detail_in and detail_out present in the name fieldYou can use the
in
operator with strings. Note that 'detail_in'
is different from 'details_in'
>>> 'details_in' in "unn_details_in_v1.cfg" True >>> 'details_in' in "unn_details_out_v1.cfg" False >>>
« We can solve any problem by introducing an extra level of indirection »