2024-02-24 15:26:16 +00:00
|
|
|
package memoryexecutor
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/pikami/cosmium/parsers"
|
|
|
|
)
|
|
|
|
|
2024-02-25 20:13:04 +00:00
|
|
|
func (c memoryExecutorContext) misc_In(arguments []interface{}, row RowType) bool {
|
|
|
|
value := c.getFieldValue(arguments[0].(parsers.SelectItem), row)
|
2024-02-24 15:26:16 +00:00
|
|
|
|
|
|
|
for i := 1; i < len(arguments); i++ {
|
2024-02-25 20:13:04 +00:00
|
|
|
compareValue := c.getFieldValue(arguments[i].(parsers.SelectItem), row)
|
2024-02-24 15:26:16 +00:00
|
|
|
if compareValues(value, compareValue) == 0 {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false
|
|
|
|
}
|