UE error c4706

So when i want to compile my code in UE i get this error c4706:assignment within conditional expression:


VS Code shows no errors but here’s the code from Grabber.cpp:



Can somebody pls help me?

when you read your error log, try to read the number in between the parenthesis at the end of the lines (it’s not always this straight-forward but often is) - the number in yours is (43) . this number often shows you which line your error is on. In this case, your error is on line 43, and the error is that you have a single ‘=’ where a double ‘==’ should go. The = is for assigning values and the == is for comparing values.

Cheers !
Tele

1 Like

I saw that the problem was on the line 43 but i didn’t see that a double == was needed maybe cuz i’m sick and can’t focus that good and also most of the time vs code points out the problems but this time it didn’t! Thx for your help!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms