COLLAPSE ALL
  • Home
  • About Pixie
    • Pixie Overview
    • Data Sources
    • How Pixie uses eBPF
    • Roadmap
    • FAQ
    • Troubleshooting
  • Installing Pixie
    • Requirements
  • Using Pixie
    • Using the Live UI
    • Using the CLI
    • Using the API
  • Tutorials
  • Reference
    • Architecture
    • PxL
      • Compile Time Functions
        • px.days
        • px.equals_any
        • px.format_duration
        • px.hours
        • px.make_upid
        • px.microseconds
        • px.milliseconds
        • px.minutes
        • px.now
        • px.parse_duration
        • px.parse_time
        • px.script_reference
        • px.seconds
        • px.strptime
        • px.uint128

px.equals_any

Returns true if the value is in the list.

Check equality of the input value with every element of a list.

Arguments

NameTypeDescription
valuepx.ExprThe value to compare.
comparisonsList[px.Expr]The list of values to check equality to the value.

Returns

px.Expr: An expression that evaluates to true if the value is found in the list.

Examples

df.val = px.equals_any(df.remote_addr, ['10.0.0.1', '10.0.0.2'])

This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.