The Y argument can be anything valid for an eval statement. IOW, if
| eval test=Y
works then
| eval test=case(X, Y)
should also work.
Thank you for reply. I did a simple test on simple text event data and |eval test=case(x=="X", a+b) does work.
If your problem is resolved, then please click the "Accept as Solution" button to help future readers.