Hey everyone, can you give me some example about pipeline config to check if an array field is not null? and how i combine it with if else?
i already made config like this
and i want to create some if statement under if [tries] to check the length of the tries field. so if tries field like this "tries" : [] it will bypass those actions. Thanks
Can you explain the logic? Because when i see it at the first time, i think its equal to == 0 Because there is 0 on condition and there is no ! or something like that to make it reverse. Thanks
if [tries] tests whether the [tries] field exists. If it does not this short-circuits (prevents) the execution of the and [tries][0] which would get an exception if the field does not exist. and [tries][0] tests if the first entry in the [tries] array exists.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.