ChangeSampleRuleByName

From Catglobe Wiki
Jump to: navigation, search



changeSampleRuleByName

Change the current questionnaire answer sheet’s sample to the specific sample of the same PQ. Return true if changing succeeds or the questionnaire answer sheet already exists in that sample, otherwise return false.

Syntax

changeSampleRuleByName(sampleName)

Arguments

sampleName: Is a string expression which is the name of the sample.

Return type

bool

Example

bool b = changeSampleRuleByName("Group : Male - Age 18 - 29 Y.O.");
print(b);