Click here to view the original link.
Can I put an if statement inside a global variable that references a value in an event to use within a pipeline? For example:
host.toLowerCase().includes('foo') ? 'index1' : 'index2'host.toLowerCase().includes('foo') ? 'index1' : 'index2'Best answer by Jon Rust
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.