getCurrentBranch( )
Get the ID of the current branch.
Note:
This rule helper function is not supported for use in Screen Candidate rule execution.Syntax
getCurrentBranch()Parameters
None.
Return value
- String value that constitutes the current branch's ID.
- Empty string if the visit is not a branch visit.
Usage tips
If the branch name is changed between study versions, use the isStudyVersion( ) function to get the appropriate name.
Examples
Example 3-96 If the current branch is 'Branch01', set value of a drop-down to true
if (getCurrentBranch() == "Branch01") {
return setChoiceLabel("TRUE");
} else {
return setChoiceLabel("FALSE");
}Parent topic: Visit and dispensation schedule functions