Skip to main content
Solved

Comparison in automation doesn't work

  • August 10, 2024
  • 2 replies
  • 31 views

Forum|alt.badge.img+4

Hi everyone !

I've encountered difficulties in validating the search for an ID. I believe there must be an error in my formula because, after integrating logs to ensure that I was correctly comparing the searched ID with the ID present in the table and the relevant column, I noticed that we have a match, but the formula generates a 'false' instead of a 'true'. Does anyone see my mistake?


Thank you

Best answer by kuovonne

Try using console.log({modeleId, recordID}) to see the actual values of the variables. The value you get from the input variable might be an array and not a string.

2 replies

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • 6009 replies
  • Answer
  • August 12, 2024

Try using console.log({modeleId, recordID}) to see the actual values of the variables. The value you get from the input variable might be an array and not a string.


Forum|alt.badge.img+4
  • Author
  • New Participant
  • 3 replies
  • August 14, 2024

Try using console.log({modeleId, recordID}) to see the actual values of the variables. The value you get from the input variable might be an array and not a string.


Hi,

You found my error ! It's was an array and not a string...now it works, thank you !