Ask Your Question
1

Check Object is Null in Stream Selector

asked 2018-02-02 07:33:53 -0500

Vivian Y gravatar image

updated 2018-02-05 17:57:26 -0500

metadaddy gravatar image

How i can do checking in stream selector if the certain object is null?

{
    "test_field" : null
}
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-02-05 17:57:13 -0500

metadaddy gravatar image

To check that it exists and is null, use

${record:exists('/test_field') && (record:value('/test_field') == null)}

To check if it's missing or null, use

${(!record:exists('/test_field')) || (record:value('/test_field') == null)}
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-02-02 07:33:53 -0500

Seen: 35 times

Last updated: Feb 05