"Conditional Values"

“How can I conditionally insert a specific value into a field based on receiving a TRUE or FALSE value, leaving the field empty if FALSE, and inserting a different value for each field based on the conditions?”

1 Like

Hi Jonathan,
Not sure if I got it right but if it returns exactly true or false, then:


for false - just keep it empty, remove everything between ; and )

And for conditions switch() might work.

Thank you for the answer, it helps, but I need something more complex, and I will specify exactly the data. I have 8 fields that I receive in a webhook, and each of them is either true or false (“Ishur1”: “TRUE”, “Ishur2”: “TRUE”, “Ishur3”: “TRUE”, “Ishur4”: “FALSE”, “Ishur5”: “FALSE”, “Ishur6”: “FALSE”, “Ishur7”: “FALSE”, “Ishur8”: “TRUE”). In relation to this, I have a field in the Salesforce module where I need to input a specific word for each field I receive in the webhook as TRUE. For example, for TRUE in Ishur1, I want the word ‘Student’ to be entered, and for TRUE in Ishur2, I want the word ‘Worker’ to be entered in the same field in Salesforce, all the words should appear in that same field. For FALSE, nothing should be entered