Can you use multiple "if statements" using the action tag @CALCTEXt?
I have a situation where there are two variables. If either of the variables is checked "Yes", I want the field to display "Positive".... if not "Negative."
@CALCTEXT(if([var1]="1" or [var2]="1"), "Positive", "Negative")
However, I want the field to stay missing if neither of the variables have a response entered. When the user opens up the form, the new variable will display "Negative" prior to entering a value for [var1] or [var2]. I don't want anything to display and be saved as such in the database.
I could use branching logic to only display the @CALCTEXT field if the two variables are not missing. However, when the use opens up the form, the user receives a message about setting the field to missing (since the field already is defined as "Negative"). This is confusing for novice REDCap research staff and could lead to errors in the database.
I would appreciate any syntax that would solve this problem.
Thanks,
Rosanne