Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
I don't work in PHP, but from what you wrote, I think a clarification is needed. In VBA, assignments cannot be embedded within other function calls... they must be done is a stand-alone statement (that is how come the equal sign can serve two purposes... how it is being used determines how it is implemented). The way you would write your PHP example wouls be like this...
r = "dog"
If Len(r) > 0 Then
' do something
End If
or, you could write the If test this way...
If r <> "" Then
but the Len method is faster in VBA (due to the way strings are stored in it). Oh, I guess I should explain Mike's example. In this statement...
r = "this" = "THIS"
the first equal sign is an assigment (because there is a variable on the left of it) and the second equal sign is a logical comparison operator because an assignment cannot take place from that position in the code statement.