[#BloombergLP-bdlar-ChoiceRef-hasSelection-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ChoiceRef.adoc[ChoiceRef]::hasSelection :relfileprefix: ../../../ :mrdocs: Return true if the object has a selection with the specified `selectionId`, and false otherwise. == Synopsis Declared in `<bdlar_choiceref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool hasSelection(int selectionId) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#