getCurrentBranch( )
Get the ID of the current branch.
Syntax
getCurrentBranch()
Parameters
None.
Return value
Returns branch short ID of the current branch (string) or an empty string if the visit is not a branch visit.
Note:
If the branch name is changed between study versions, use the isStudyVersion( ) function to get the appropriate name.
Example 3-93 If the current branch is 'Branch01', set value of a dropdown to true
if (getCurrentBranch() == "Branch01") {
return setChoiceLabel("TRUE");
} else {
return setChoiceLabel("FALSE");
}
Parent topic: Multiple visit schedules and cycle visit functions