Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

Mike_Rausch_628's avatar
Mike_Rausch_628
Icon for Nimbostratus rankNimbostratus
Mar 14, 2007

Syntax for Nested "IF" statements

I am trying to create a rule that has several criteria but I cannot get the nested IF statements to work.

1 Reply

  • AaronJB's avatar
    AaronJB
    Ret. Employee
    Perhaps post an example of what you have so far?

    Generally nesting if statements is fairly straightforward:

    when EVENT {
      if { criteria_1 } {
        if { criteria_2 } {
          do_stuff
        }
      do_stuff_if_crit_1_matched
      }
    }

    What particular problem are you having?

    --

    Aaron