MediaPost Social Network

up:switch

Description

Evaluates every up: tag inside and returns the first one that evaluates to anything other than an empty string.

Sample code

  <up:switch>  
     <up:photo pid="12345" />
     <up:profile-pic uid="54321" />        
  </up:switch>