Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: karennapHi all, I have a DB Execute node which creates a dynamic sql string based on data provided by an input.
e.g.
"SqlSelectStatement = "Select * from tableName where FieldToFilter in (" + InputPinValue + ")"
sqlSelect(1,SqlSelectStatement)
This works perfectly fine when there is a value in the InputPinValue but obviously errors when there is no value in the input. The output pin of this DB execute node is connected to a Cat node where I combine the data found in this DB execute with other DB Execute node values.
Please can you help me understand how I can bypass this single node if there is no value in the input pin? I've tried the switch node, the bypass node and the meta check node with no success, I still need the Cat node to run, I just need to pass it an empty value if this DB Execute node is unable to run either by passing it the vaue of an alternative node, or by amending the brainscript to not run the sqlSelect statement above but instead return a blank/null value.
Many thanks