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

Forum Discussion

gerald_wegener_'s avatar
gerald_wegener_
Icon for Nimbostratus rankNimbostratus
19 years ago

Possible to use SWITCH with variable

 

Is it possible to use switch to do the following using variables?

 

I've been trying for a while but can't get it to work using SWITCH.

 

 

-------

 

X = some random number say 50

 

 

A =10

 

B =4

 

C =6

 

----------

 

 

 

if { $X > $A } {

 

pool pool01

 

}

 

if { $X <= $B } {

 

pool pool02

 

}

 

 

if { (($X > $B) and ($X <= $A)) } {

 

pool pool3

 

}

 

 

 

Thank you for your help.

 

2 Replies

No RepliesBe the first to reply