Also, SW has issues using an evaluation statement with = in it, so you will have to use LIKE instead. For example, if you wanted to make an equation that worked like this:
If "D1@Sketch1"=1 Then
"D2@Sketch1"=2
Else
"D2@Sketch1"=3
End If
"D1@Sketch1" = IIF("D2@Sketch1"=1,2,3) This would not work
"D1@Sketch1" = IIF("D2@Sketch1" LIKE 1,2,3) But this would be