Attribute expressions and if-condition

Changed attribute expressions from attribute () to @, and made
if-conditions testing attribute values