Contrôle conditionnel dans le fichier yaml pour afficher le bon contenu

Comment puis-je vérifier if /else dans le fichier yaml.

comme:

 if %{attribute}
    attributes:
       shipping_comment: Shipping comment /Instructions
 else
    attributes:
       shipping_date: Date

OriginalL'auteur Rajarshi Das | 2014-05-29