Follow

Useful Expression Recipies

Below are some examples of expressions that come up regularly when running surveys.

  When this is used
$answer eq 'this' or $answer eq 'that' or $answer eq 'the other' When applied as a condition to a branch when you want to branch if the answer is this, that or the other
How would you describe the working conditions at $company_name When used with PIPE in question text, the value of the company_name variable will appear
!($age>=18 and $age<=65) Checks the age range of a respondent and evaluates to true if the age is outside of the working age.

This is equivalent to $age65
$account_number=~/^[0-9]+$/ True if $account_number is a string of digits only
$account_number=~/^[1-9][0-9]*$/ True if $account_number is a string of digits only with a non-zero start
$email_address=~/@/ True if the entry has a @ in it.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.