MCPcopy Create free account
hub / github.com/StackStorm/st2 / inside

Function inside

st2common/st2common/operators.py:342–347  ·  view source on GitHub ↗
(value, criteria_pattern)

Source from the content-addressed store, hash-verified

340
341
342def inside(value, criteria_pattern):
343 if criteria_pattern is None:
344 return False
345
346 value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern)
347 return value in criteria_pattern
348
349
350def ninside(value, criteria_pattern):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected