You don't need the if after and.
You don't have a second condition Table2::Type ? equal or not equal to what?
If (condition1="what" and condition2="what";result1;else result2)
Thanks so much!
Check out Case Statements in Help. I never use an If Statement, even if it is clearly just a 'if this, then that' scenario. You will find them much more flexible for adding further conditions down the road.