Having problems with Javascript conditional statement

I have a form that needs to pull in an update from integromat - that has pulled in data from another database.

I want to deliver an alert if the data has not yet being returned. (And once I have this fixed i will add a timed reload to refresh periodically and check for the data)

Integromat automatically updates field_1 once it has the data with the text "Data returned"

But my "if" statement doesn't seem to work. The field is a text field - so I don't know if that is the problem - or something else with my syntax.

$(document).on('knack-view-render.view_104', function(event, view, data) {
if ($("#view_104-field_1").val() = "Data returned")
alert("Data not yet returned");



Thanks for your help


Thanks so much for your help!