Present

This node lets you branch off based on data being present or not.

The Present node lets you branch off the automation to different triggers based on data being present or not. This can be very useful in situations where you need to perform different actions based on data where you do not know exactly how the data is structured.´

Example

Say you’ve accessed performance data for ads from Facebook or Snapchat and you do not know if the property “spend” exists on the data that was returned. If you use the Extract node to access the data at the pointer “/spend” and it doesn’t exist, the returned data field would be empty. If you then tried to access this field in another node this would cause an error. By using the Present node, we can check if the data field is empty and branch the automation off based on it.

 
Notion image

In the above example, the Extract node tries to access the property “/spend” but it doesn’t exist on the data. Therefore, the output data field would be empty and the Present node would trigger the false trigger.

 
 

Input Fields

field
schema
explanation
data
any
Input any data to be checked if it is present or empty.
 
 
Did this answer your question?
😞
😐
🤩

Last updated on February 6, 2023