mirror of
https://github.com/pikami/cosmium.git
synced 2024-11-27 16:07:40 +00:00
19 lines
423 B
Go
19 lines
423 B
Go
package memoryexecutor
|
|
|
|
import (
|
|
"github.com/pikami/cosmium/parsers"
|
|
)
|
|
|
|
func (c memoryExecutorContext) misc_In(arguments []interface{}, row RowType) bool {
|
|
value := c.getFieldValue(arguments[0].(parsers.SelectItem), row)
|
|
|
|
for i := 1; i < len(arguments); i++ {
|
|
compareValue := c.getFieldValue(arguments[i].(parsers.SelectItem), row)
|
|
if compareValues(value, compareValue) == 0 {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|