Kapacitor lambda to do if else AND OR

kapacitor
#1

Hey guys,
Is kapacitor is able to handle this kind of request “stream
|from()
.measurement(‘taskmanagers_running’)
|window()
.period(1m)
.every(10m)
|eval(lambda: if(“testStatus” == 1 OR “testStatus” == 2 , ‘Less’, ‘More’)).as(‘value’)
|alert()”