/
How to use piping with if/then/else statements

How to use piping with if/then/else statements

You can easily pipe in a given field’s value for any parameter of an if/then/else statement

In this example, we need to assess whether the value of [gender] is less than 1, if so use that value, otherwise, use a value of 5.


if ([gender]< 1,[gender],5)




For additional assistance, please contact cru@ucalgary.ca 

Related content

How do I reference (pipe, calculated field, or default action tag) a field in a repeating EVENT
How do I reference (pipe, calculated field, or default action tag) a field in a repeating EVENT
Read with this
How can I use a calculated field to determine eligibility if one or more fields are true?
How can I use a calculated field to determine eligibility if one or more fields are true?
More like this
How do I reverse score variables in a matrix?
How do I reverse score variables in a matrix?
Read with this
Calculated Fields
Calculated Fields
More like this
How to display and embed a picture in REDCap
How to display and embed a picture in REDCap
Read with this
How do I show a field only for participants outside of a specific age range?
How do I show a field only for participants outside of a specific age range?
More like this