Well, you really need to spell out /all/ the different possible cases,
because it isn't completely clear how the new cases relate to the situation
you already had. If you did that, you might find it easier to work out the
various nested statements for yourself - it's simple logic.
Also, if there are many more cases, it may make sense to try to generate the
text in your data source or, e.g. in an Access query.
e.g....
...AND CELL 4 reads "CA", then enter "testing"
Which of the following do you mean:
a. if cell1,2,3 are all blank but cell4 is CA, use "testing". In all other
cases, use 888
b. if one of cell1,2,3 is non-blank, use 888. In addition, if cell4 is
"CA", add "testing"
c. whatever the value of cell1,2,3, if cell4 is "CA", add "testing"
?
For (a), try:
{ IF "{ MERGEFIELD cell1 }{ MERGEFIELD cell2 }{ MERGEFIELD cell3 }" = ""
"{ IF "{ MERGEFIELD cell4 }" = "CA" "testing" "" }"
"888" }
For (b), try
{ IF "{ MERGEFIELD cell1 }{ MERGEFIELD cell2 }{ MERGEFIELD cell3 }" = ""
""
"888{ IF "{ MERGEFIELD cell4}" = "CA" "testing" "" }" }
For (c), try the obvious:
{ IF "{ MERGEFIELD cell1 }{ MERGEFIELD cell2 }{ MERGEFIELD cell3 }" = ""
""
"888" }{ { IF "{ MERGEFIELD cell4}" = "CA" "testing" "" }
2) IF CELL 1 AND CELL 2 ARE NOT BLANK, OR CELL 3 IS NOT
EQUAL TO 777, ENTER PHRASE "TESTING"
How does this case relate to the other cases you have described?
(NB, I'll be away for a few days).