Forum Discussion
Kai_Wilke
Mar 09, 2016MVP
Hi Bas,
to recycle the return value of
[if]
in such a way, it would be required to [set]
the value within the {script
} section...
set PORT [if {${APP} equals class-test} then { set x 81} else {set x 83}]
... but this doesn't make any sense at all. It would be better to use just...
if {${APP} equals class-test} then {
set PORT 81
} else {
set PORT 83
}
Note: I didn't get the point of "data-class"? Do you want to use LTM datagroups to resolve the APP to PORT information?
Cheers, Kai