Choice

Search for one of the answers in a choice question.

Note:

You can also consider the getStringFromChoice( ) helper function as an alternative, depending on your use case.

This example illustrates how to view female subjects that haven't done a pregnancy test.

if ((Gender.search('Female') > 0) && (Test.search('Not Done') > 0)){
  return false;
}

Note:

The .search function can only be used with a string. If you want to use this function with an object, you must first convert the object to a string.