Evaluates every up: tag inside and returns the first one that evaluates to anything other than an empty string.
<up:switch> <up:photo pid="12345" /> <up:profile-pic uid="54321" /> </up:switch>