Table-4 Not

Not !

Not Code Experiments

table4-1

 

Experiments to try:

Experiment solution code:

If logic inside the loop:

  // 1
  if (row.getField("name").startsWith("A") &&
      row.getField("gender") == "girl") {
    print(row);
  }

  // 2
  if (!(row.getField("name").startsWith("A")) &&
      row.getField("gender") == "girl") {
    print(row);
  }

  // 3
  if (row.getField("name").startsWith("A") &&
      !(row.getField("name").endsWith("y"))) {
    print(row);
  }

  // 4
  if (row.getField("name").startsWith("A") &&
      row.getField("name").endsWith("y") &&
      !(row.getField("name") == "Abbey")) {
    print(row);
  }

> exercises