Conditionals: string is allowed as conditional statement
Open
design
discuss
enhancement
LIR
- Dominant language
- Java
- Stars
- 14.9k
- Forks
- 3.5k
- Avg merge
- 19h 14m
- Merged PRs (30d)
- 63
Description
Current grammar allows using string as conditionals statements like
```
if "i'm a fool" {
noop {
add_tag => "fool"
}
}
```
But as reported in LOGSTASH-1434, this could be confusing to non-programmer/distracted users that would write
```
if [field] == "string1" or "string2" {
....
}
```
and do not understand why the condition is always matched...
Contributor guide
Assessment
This issue has not been assessed yet.